/* Options: Date: 2025-05-04 16:04:43 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://team.evovoice.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: TestSchedule.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Schedule implements IConvertible { String? timeZoneId; bool? inherit; bool? forceClosed; List? rules; String? defaultState; Schedule({this.timeZoneId,this.inherit,this.forceClosed,this.rules,this.defaultState}); Schedule.fromJson(Map json) { fromMap(json); } fromMap(Map json) { timeZoneId = json['timeZoneId']; inherit = json['inherit']; forceClosed = json['forceClosed']; rules = JsonConverters.fromJson(json['rules'],'List',context!); defaultState = json['defaultState']; return this; } Map toJson() => { 'timeZoneId': timeZoneId, 'inherit': inherit, 'forceClosed': forceClosed, 'rules': JsonConverters.toJson(rules,'List',context!), 'defaultState': defaultState }; getTypeName() => "Schedule"; TypeContext? context = _ctx; } class TestScheduleResponse implements IConvertible { String? stateName; String? timeZoneId; TestScheduleResponse({this.stateName,this.timeZoneId}); TestScheduleResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { stateName = json['stateName']; timeZoneId = json['timeZoneId']; return this; } Map toJson() => { 'stateName': stateName, 'timeZoneId': timeZoneId }; getTypeName() => "TestScheduleResponse"; TypeContext? context = _ctx; } /** * Test the customer's schedule */ // @Route("/customers/{customerId}/test-schedule", "POST") // @Route("/endpoints/{endpointId}/test-schedule", "POST") // @Api(Description="Test the customer's schedule") class TestSchedule implements IReturn, IConvertible, IPost { /** * The ID of the customer whose schedule you want to test */ // @ApiMember(Description="The ID of the customer whose schedule you want to test") String? customerId; /** * The ID of the endpoint whose schedule you want to test. */ // @ApiMember(Description="The ID of the endpoint whose schedule you want to test.") String? endpointId; /** * The schedule to use (leave null to use the current saved schedule) */ // @ApiMember(Description="The schedule to use (leave null to use the current saved schedule)") Schedule? schedule; /** * The ISO string of the date and time you want to test */ // @ApiMember(Description="The ISO string of the date and time you want to test") String? dateTime; TestSchedule({this.customerId,this.endpointId,this.schedule,this.dateTime}); TestSchedule.fromJson(Map json) { fromMap(json); } fromMap(Map json) { customerId = json['customerId']; endpointId = json['endpointId']; schedule = JsonConverters.fromJson(json['schedule'],'Schedule',context!); dateTime = json['dateTime']; return this; } Map toJson() => { 'customerId': customerId, 'endpointId': endpointId, 'schedule': JsonConverters.toJson(schedule,'Schedule',context!), 'dateTime': dateTime }; createResponse() => TestScheduleResponse(); getResponseTypeName() => "TestScheduleResponse"; getTypeName() => "TestSchedule"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'team.evovoice.io', types: { 'Schedule': TypeInfo(TypeOf.Class, create:() => Schedule()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SchedulingRule': TypeInfo(TypeOf.Class, create:() => SchedulingRule()), 'TestScheduleResponse': TypeInfo(TypeOf.Class, create:() => TestScheduleResponse()), 'TestSchedule': TypeInfo(TypeOf.Class, create:() => TestSchedule()), });