/* Options: Date: 2024-11-21 11:58:48 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SyncToiCal.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } // @Route("/sync/icalsync/{companyid}/{token}", "GET") class SyncToiCal implements ICompany, IConvertible, IGet { /** * Enter the company, if blank and you are an admin, your company id will be used */ // @ApiMember(Description="Enter the company, if blank and you are an admin, your company id will be used", ParameterType="path") String? CompanyId; /** * Query for specific Resources, default is all resources */ // @ApiMember(Description="Query for specific Resources, default is all resources", IsRequired=true, ParameterType="query") List? ResourceIds; /** * ICalSync Token */ // @ApiMember(Description="ICalSync Token", IsRequired=true, ParameterType="path") String? Token; /** * If you want to include the schedule time slots */ // @ApiMember(Description="If you want to include the schedule time slots", ParameterType="query") bool? IncludeSchedules; SyncToiCal({this.CompanyId,this.ResourceIds,this.Token,this.IncludeSchedules}); SyncToiCal.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; ResourceIds = JsonConverters.fromJson(json['ResourceIds'],'List',context!); Token = json['Token']; IncludeSchedules = json['IncludeSchedules']; return this; } Map toJson() => { 'CompanyId': CompanyId, 'ResourceIds': JsonConverters.toJson(ResourceIds,'List',context!), 'Token': Token, 'IncludeSchedules': IncludeSchedules }; getTypeName() => "SyncToiCal"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'SyncToiCal': TypeInfo(TypeOf.Class, create:() => SyncToiCal()), });