/* Options: Date: 2024-06-26 09:41:04 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: RecurringScheduleIntervalsQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } abstract class IInterval { DateTime? From; DateTime? To; } class ScheduleIntervalsQueryResponse implements IConvertible { DateTime? From; DateTime? To; Duration? Duration; ScheduleIntervalsQueryResponse({this.From,this.To,this.Duration}); ScheduleIntervalsQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { From = JsonConverters.fromJson(json['From'],'DateTime',context!); To = JsonConverters.fromJson(json['To'],'DateTime',context!); Duration = JsonConverters.fromJson(json['Duration'],'Duration',context!); return this; } Map toJson() => { 'From': JsonConverters.toJson(From,'DateTime',context!), 'To': JsonConverters.toJson(To,'DateTime',context!), 'Duration': JsonConverters.toJson(Duration,'Duration',context!) }; getTypeName() => "ScheduleIntervalsQueryResponse"; TypeContext? context = _ctx; } // @Route("/schedules/recurring/intervals", "GET") // @ValidateRequest(Validator="IsAuthenticated") class RecurringScheduleIntervalsQuery implements IReturn, ICompany, IInterval, IConvertible, IGet { /** * Company to show services for */ // @ApiMember(Description="Company to show services for", ParameterType="query") String? CompanyId; /** * From what datetime to show times */ // @ApiMember(DataType="dateTime", Description="From what datetime to show times", IsRequired=true, ParameterType="query") DateTime? From; /** * To what datetime to show times */ // @ApiMember(DataType="dateTime", Description="To what datetime to show times", IsRequired=true, ParameterType="query") DateTime? To; /** * Here you can select one of the resource, if none is selected it will show available times for all */ // @ApiMember(Description="Here you can select one of the resource, if none is selected it will show available times for all", ParameterType="query") List? ResourceIds; ResponseStatus? ResponseStatus; RecurringScheduleIntervalsQuery({this.CompanyId,this.From,this.To,this.ResourceIds,this.ResponseStatus}); RecurringScheduleIntervalsQuery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyId = json['CompanyId']; From = JsonConverters.fromJson(json['From'],'DateTime',context!); To = JsonConverters.fromJson(json['To'],'DateTime',context!); ResourceIds = JsonConverters.fromJson(json['ResourceIds'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'CompanyId': CompanyId, 'From': JsonConverters.toJson(From,'DateTime',context!), 'To': JsonConverters.toJson(To,'DateTime',context!), 'ResourceIds': JsonConverters.toJson(ResourceIds,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; createResponse() => ScheduleIntervalsQueryResponse(); getResponseTypeName() => "ScheduleIntervalsQueryResponse"; getTypeName() => "RecurringScheduleIntervalsQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'testapi.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'IInterval': TypeInfo(TypeOf.Interface), 'ScheduleIntervalsQueryResponse': TypeInfo(TypeOf.Class, create:() => ScheduleIntervalsQueryResponse()), 'RecurringScheduleIntervalsQuery': TypeInfo(TypeOf.Class, create:() => RecurringScheduleIntervalsQuery()), });