/* Options: Date: 2025-12-06 06:06:04 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: SchedulerConfigurationRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class LineImage implements IConvertible { String? ImageId; String? FileName; String? ImageTitle; DateTime? UploadDate; LineImage({this.ImageId,this.FileName,this.ImageTitle,this.UploadDate}); LineImage.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ImageId = json['ImageId']; FileName = json['FileName']; ImageTitle = json['ImageTitle']; UploadDate = JsonConverters.fromJson(json['UploadDate'],'DateTime',context!); return this; } Map toJson() => { 'ImageId': ImageId, 'FileName': FileName, 'ImageTitle': ImageTitle, 'UploadDate': JsonConverters.toJson(UploadDate,'DateTime',context!) }; getTypeName() => "LineImage"; TypeContext? context = _ctx; } class Line implements IConvertible { String? Id; String? LocationId; String? LocationName; String? Name; String? Description; int? ServiceDurationMinutes; int? WaitTime; double? Cost; int? UpperThreshold; int? LowerThreshold; bool? Active; DateTime? EntDate; DateTime? ModDate; bool? SendQuestionnaire; bool? RequireUpload; String? UploadMessage; List? LineImages = []; Line({this.Id,this.LocationId,this.LocationName,this.Name,this.Description,this.ServiceDurationMinutes,this.WaitTime,this.Cost,this.UpperThreshold,this.LowerThreshold,this.Active,this.EntDate,this.ModDate,this.SendQuestionnaire,this.RequireUpload,this.UploadMessage,this.LineImages}); Line.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; LocationId = json['LocationId']; LocationName = json['LocationName']; Name = json['Name']; Description = json['Description']; ServiceDurationMinutes = json['ServiceDurationMinutes']; WaitTime = json['WaitTime']; Cost = JsonConverters.toDouble(json['Cost']); UpperThreshold = json['UpperThreshold']; LowerThreshold = json['LowerThreshold']; Active = json['Active']; EntDate = JsonConverters.fromJson(json['EntDate'],'DateTime',context!); ModDate = JsonConverters.fromJson(json['ModDate'],'DateTime',context!); SendQuestionnaire = json['SendQuestionnaire']; RequireUpload = json['RequireUpload']; UploadMessage = json['UploadMessage']; LineImages = JsonConverters.fromJson(json['LineImages'],'List',context!); return this; } Map toJson() => { 'Id': Id, 'LocationId': LocationId, 'LocationName': LocationName, 'Name': Name, 'Description': Description, 'ServiceDurationMinutes': ServiceDurationMinutes, 'WaitTime': WaitTime, 'Cost': Cost, 'UpperThreshold': UpperThreshold, 'LowerThreshold': LowerThreshold, 'Active': Active, 'EntDate': JsonConverters.toJson(EntDate,'DateTime',context!), 'ModDate': JsonConverters.toJson(ModDate,'DateTime',context!), 'SendQuestionnaire': SendQuestionnaire, 'RequireUpload': RequireUpload, 'UploadMessage': UploadMessage, 'LineImages': JsonConverters.toJson(LineImages,'List',context!) }; getTypeName() => "Line"; TypeContext? context = _ctx; } class ScheduleConfigTimeBlock implements IConvertible { Duration? StartTime; String? DayStartFriendly; Duration? EndTime; String? DayEndFriendly; ScheduleConfigTimeBlock({this.StartTime,this.DayStartFriendly,this.EndTime,this.DayEndFriendly}); ScheduleConfigTimeBlock.fromJson(Map json) { fromMap(json); } fromMap(Map json) { StartTime = JsonConverters.fromJson(json['StartTime'],'Duration',context!); DayStartFriendly = json['DayStartFriendly']; EndTime = JsonConverters.fromJson(json['EndTime'],'Duration',context!); DayEndFriendly = json['DayEndFriendly']; return this; } Map toJson() => { 'StartTime': JsonConverters.toJson(StartTime,'Duration',context!), 'DayStartFriendly': DayStartFriendly, 'EndTime': JsonConverters.toJson(EndTime,'Duration',context!), 'DayEndFriendly': DayEndFriendly }; getTypeName() => "ScheduleConfigTimeBlock"; TypeContext? context = _ctx; } class ScheduleConfigDay implements IConvertible { String? DayName; int? DayNumber; bool? DayEnabled; List? TimeBlocks = []; ScheduleConfigDay({this.DayName,this.DayNumber,this.DayEnabled,this.TimeBlocks}); ScheduleConfigDay.fromJson(Map json) { fromMap(json); } fromMap(Map json) { DayName = json['DayName']; DayNumber = json['DayNumber']; DayEnabled = json['DayEnabled']; TimeBlocks = JsonConverters.fromJson(json['TimeBlocks'],'List',context!); return this; } Map toJson() => { 'DayName': DayName, 'DayNumber': DayNumber, 'DayEnabled': DayEnabled, 'TimeBlocks': JsonConverters.toJson(TimeBlocks,'List',context!) }; getTypeName() => "ScheduleConfigDay"; TypeContext? context = _ctx; } 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; } // @Route("/v1/Scheduler/Settings/{LocationId}/{AgentId}/{Mode}", "GET,OPTIONS") class SchedulerConfigurationRequest implements IReturn, IConvertible, IGet { String? LocationId; int? AgentId; String? Mode; SchedulerConfigurationRequest({this.LocationId,this.AgentId,this.Mode}); SchedulerConfigurationRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { LocationId = json['LocationId']; AgentId = json['AgentId']; Mode = json['Mode']; return this; } Map toJson() => { 'LocationId': LocationId, 'AgentId': AgentId, 'Mode': Mode }; createResponse() => SchedulerConfiguration(); getResponseTypeName() => "SchedulerConfiguration"; getTypeName() => "SchedulerConfigurationRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'LineImage': TypeInfo(TypeOf.Class, create:() => LineImage()), 'Line': TypeInfo(TypeOf.Class, create:() => Line()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ScheduleConfigTimeBlock': TypeInfo(TypeOf.Class, create:() => ScheduleConfigTimeBlock()), 'ScheduleConfigDay': TypeInfo(TypeOf.Class, create:() => ScheduleConfigDay()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SchedulerConfiguration': TypeInfo(TypeOf.Class, create:() => SchedulerConfiguration()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SchedulerConfigurationRequest': TypeInfo(TypeOf.Class, create:() => SchedulerConfigurationRequest()), });