/* Options: Date: 2025-12-06 10:03:08 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SchedulerConfigurationSaveRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class SchedulerConfiguration implements IConvertible { int? ConfigId; String? SchedulerUrl; String? SchedulerName; String? DefaultLocation; String? DefaultSummary; String? DefaultDescription; Duration? DayStart; String? DayStartFriendly; Duration? DayEnd; String? DayEndFriendly; int? TimeslotDuration; int? NumberOfSlots; String? LocationId; String? CalendarId; int? AgentId; String? TimeZone; List? AvailableDateTimes = []; List? AvailableServices = []; List? AllServices = []; SchedulerConfiguration({this.ConfigId,this.SchedulerUrl,this.SchedulerName,this.DefaultLocation,this.DefaultSummary,this.DefaultDescription,this.DayStart,this.DayStartFriendly,this.DayEnd,this.DayEndFriendly,this.TimeslotDuration,this.NumberOfSlots,this.LocationId,this.CalendarId,this.AgentId,this.TimeZone,this.AvailableDateTimes,this.AvailableServices,this.AllServices}); SchedulerConfiguration.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ConfigId = json['ConfigId']; SchedulerUrl = json['SchedulerUrl']; SchedulerName = json['SchedulerName']; DefaultLocation = json['DefaultLocation']; DefaultSummary = json['DefaultSummary']; DefaultDescription = json['DefaultDescription']; DayStart = JsonConverters.fromJson(json['DayStart'],'Duration',context!); DayStartFriendly = json['DayStartFriendly']; DayEnd = JsonConverters.fromJson(json['DayEnd'],'Duration',context!); DayEndFriendly = json['DayEndFriendly']; TimeslotDuration = json['TimeslotDuration']; NumberOfSlots = json['NumberOfSlots']; LocationId = json['LocationId']; CalendarId = json['CalendarId']; AgentId = json['AgentId']; TimeZone = json['TimeZone']; AvailableDateTimes = JsonConverters.fromJson(json['AvailableDateTimes'],'List',context!); AvailableServices = JsonConverters.fromJson(json['AvailableServices'],'List',context!); AllServices = JsonConverters.fromJson(json['AllServices'],'List',context!); return this; } Map toJson() => { 'ConfigId': ConfigId, 'SchedulerUrl': SchedulerUrl, 'SchedulerName': SchedulerName, 'DefaultLocation': DefaultLocation, 'DefaultSummary': DefaultSummary, 'DefaultDescription': DefaultDescription, 'DayStart': JsonConverters.toJson(DayStart,'Duration',context!), 'DayStartFriendly': DayStartFriendly, 'DayEnd': JsonConverters.toJson(DayEnd,'Duration',context!), 'DayEndFriendly': DayEndFriendly, 'TimeslotDuration': TimeslotDuration, 'NumberOfSlots': NumberOfSlots, 'LocationId': LocationId, 'CalendarId': CalendarId, 'AgentId': AgentId, 'TimeZone': TimeZone, 'AvailableDateTimes': JsonConverters.toJson(AvailableDateTimes,'List',context!), 'AvailableServices': JsonConverters.toJson(AvailableServices,'List',context!), 'AllServices': JsonConverters.toJson(AllServices,'List',context!) }; getTypeName() => "SchedulerConfiguration"; TypeContext? context = _ctx; } class SchedulerConfigurationSaveResponse implements IConvertible { ResponseStatus? ResponseStatus; SchedulerConfiguration? Settings; SchedulerConfigurationSaveResponse({this.ResponseStatus,this.Settings}); SchedulerConfigurationSaveResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Settings = JsonConverters.fromJson(json['Settings'],'SchedulerConfiguration',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Settings': JsonConverters.toJson(Settings,'SchedulerConfiguration',context!) }; getTypeName() => "SchedulerConfigurationSaveResponse"; TypeContext? context = _ctx; } // @Route("/v1/Scheduler/Settings", "POST,PUT,OPTIONS") class SchedulerConfigurationSaveRequest implements IReturn, IConvertible, IPost { SchedulerConfiguration? Settings; SchedulerConfigurationSaveRequest({this.Settings}); SchedulerConfigurationSaveRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Settings = JsonConverters.fromJson(json['Settings'],'SchedulerConfiguration',context!); return this; } Map toJson() => { 'Settings': JsonConverters.toJson(Settings,'SchedulerConfiguration',context!) }; createResponse() => SchedulerConfigurationSaveResponse(); getResponseTypeName() => "SchedulerConfigurationSaveResponse"; getTypeName() => "SchedulerConfigurationSaveRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'SchedulerConfiguration': TypeInfo(TypeOf.Class, create:() => SchedulerConfiguration()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ScheduleConfigDay': TypeInfo(TypeOf.Class, create:() => ScheduleConfigDay()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Line': TypeInfo(TypeOf.Class, create:() => Line()), 'SchedulerConfigurationSaveResponse': TypeInfo(TypeOf.Class, create:() => SchedulerConfigurationSaveResponse()), 'SchedulerConfigurationSaveRequest': TypeInfo(TypeOf.Class, create:() => SchedulerConfigurationSaveRequest()), });