/* Options: Date: 2026-10-14 01:53:49 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: CourierBookPageRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class CourierTrackBusiness implements IConvertible { String? Name; String? Phone; CourierTrackBusiness({this.Name,this.Phone}); CourierTrackBusiness.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Name = json['Name']; Phone = json['Phone']; return this; } Map toJson() => { 'Name': Name, 'Phone': Phone }; getTypeName() => "CourierTrackBusiness"; TypeContext? context = _ctx; } class CourierBookLevel implements IConvertible { String? Code; String? Name; String? Ready; int? WithinMin; String? InBy; double? Surcharge; List? Days = []; int? DeadlineMin; CourierBookLevel({this.Code,this.Name,this.Ready,this.WithinMin,this.InBy,this.Surcharge,this.Days,this.DeadlineMin}); CourierBookLevel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Code = json['Code']; Name = json['Name']; Ready = json['Ready']; WithinMin = json['WithinMin']; InBy = json['InBy']; Surcharge = JsonConverters.toDouble(json['Surcharge']); Days = JsonConverters.fromJson(json['Days'],'List',context!); DeadlineMin = json['DeadlineMin']; return this; } Map toJson() => { 'Code': Code, 'Name': Name, 'Ready': Ready, 'WithinMin': WithinMin, 'InBy': InBy, 'Surcharge': Surcharge, 'Days': JsonConverters.toJson(Days,'List',context!), 'DeadlineMin': DeadlineMin }; getTypeName() => "CourierBookLevel"; TypeContext? context = _ctx; } class HandoffOptions implements IConvertible { bool? Hand; bool? Porch; bool? Desk; bool? SigRequired; bool? IdRequired; bool? CodeRequired; HandoffOptions({this.Hand,this.Porch,this.Desk,this.SigRequired,this.IdRequired,this.CodeRequired}); HandoffOptions.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Hand = json['Hand']; Porch = json['Porch']; Desk = json['Desk']; SigRequired = json['SigRequired']; IdRequired = json['IdRequired']; CodeRequired = json['CodeRequired']; return this; } Map toJson() => { 'Hand': Hand, 'Porch': Porch, 'Desk': Desk, 'SigRequired': SigRequired, 'IdRequired': IdRequired, 'CodeRequired': CodeRequired }; getTypeName() => "HandoffOptions"; TypeContext? context = _ctx; } class CourierBookProfile implements IConvertible { String? Code; String? Name; String? Shape; String? Template; String? UnitOne; String? UnitMany; String? UnitOneEs; String? UnitManyEs; String? FacilityNoun; String? FacilityNounEs; String? FacilityName; List? Levels = []; bool? Asap; bool? Recurring; String? PayTiming; bool? FinalAfterCount; double? CancelFee; double? MissedFee; int? MissedWaitMin; List? ServiceArea = []; List? Zips = []; HandoffOptions? Handoffs; CourierBookProfile({this.Code,this.Name,this.Shape,this.Template,this.UnitOne,this.UnitMany,this.UnitOneEs,this.UnitManyEs,this.FacilityNoun,this.FacilityNounEs,this.FacilityName,this.Levels,this.Asap,this.Recurring,this.PayTiming,this.FinalAfterCount,this.CancelFee,this.MissedFee,this.MissedWaitMin,this.ServiceArea,this.Zips,this.Handoffs}); CourierBookProfile.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Code = json['Code']; Name = json['Name']; Shape = json['Shape']; Template = json['Template']; UnitOne = json['UnitOne']; UnitMany = json['UnitMany']; UnitOneEs = json['UnitOneEs']; UnitManyEs = json['UnitManyEs']; FacilityNoun = json['FacilityNoun']; FacilityNounEs = json['FacilityNounEs']; FacilityName = json['FacilityName']; Levels = JsonConverters.fromJson(json['Levels'],'List',context!); Asap = json['Asap']; Recurring = json['Recurring']; PayTiming = json['PayTiming']; FinalAfterCount = json['FinalAfterCount']; CancelFee = JsonConverters.toDouble(json['CancelFee']); MissedFee = JsonConverters.toDouble(json['MissedFee']); MissedWaitMin = json['MissedWaitMin']; ServiceArea = JsonConverters.fromJson(json['ServiceArea'],'List',context!); Zips = JsonConverters.fromJson(json['Zips'],'List',context!); Handoffs = JsonConverters.fromJson(json['Handoffs'],'HandoffOptions',context!); return this; } Map toJson() => { 'Code': Code, 'Name': Name, 'Shape': Shape, 'Template': Template, 'UnitOne': UnitOne, 'UnitMany': UnitMany, 'UnitOneEs': UnitOneEs, 'UnitManyEs': UnitManyEs, 'FacilityNoun': FacilityNoun, 'FacilityNounEs': FacilityNounEs, 'FacilityName': FacilityName, 'Levels': JsonConverters.toJson(Levels,'List',context!), 'Asap': Asap, 'Recurring': Recurring, 'PayTiming': PayTiming, 'FinalAfterCount': FinalAfterCount, 'CancelFee': CancelFee, 'MissedFee': MissedFee, 'MissedWaitMin': MissedWaitMin, 'ServiceArea': JsonConverters.toJson(ServiceArea,'List',context!), 'Zips': JsonConverters.toJson(Zips,'List',context!), 'Handoffs': JsonConverters.toJson(Handoffs,'HandoffOptions',context!) }; getTypeName() => "CourierBookProfile"; TypeContext? context = _ctx; } class CourierBookProfileLink implements IConvertible { String? Code; String? Name; String? Shape; CourierBookProfileLink({this.Code,this.Name,this.Shape}); CourierBookProfileLink.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Code = json['Code']; Name = json['Name']; Shape = json['Shape']; return this; } Map toJson() => { 'Code': Code, 'Name': Name, 'Shape': Shape }; getTypeName() => "CourierBookProfileLink"; TypeContext? context = _ctx; } class CourierBookPageView implements IConvertible { bool? Available; bool? BookingOn; CourierTrackBusiness? Business; CourierBookProfile? Profile; List? Profiles = []; bool? CardEnabled; String? PublishableKey; String? AppUrl; String? Today; int? Weekday; int? NowMin; CourierBookPageView({this.Available,this.BookingOn,this.Business,this.Profile,this.Profiles,this.CardEnabled,this.PublishableKey,this.AppUrl,this.Today,this.Weekday,this.NowMin}); CourierBookPageView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Available = json['Available']; BookingOn = json['BookingOn']; Business = JsonConverters.fromJson(json['Business'],'CourierTrackBusiness',context!); Profile = JsonConverters.fromJson(json['Profile'],'CourierBookProfile',context!); Profiles = JsonConverters.fromJson(json['Profiles'],'List',context!); CardEnabled = json['CardEnabled']; PublishableKey = json['PublishableKey']; AppUrl = json['AppUrl']; Today = json['Today']; Weekday = json['Weekday']; NowMin = json['NowMin']; return this; } Map toJson() => { 'Available': Available, 'BookingOn': BookingOn, 'Business': JsonConverters.toJson(Business,'CourierTrackBusiness',context!), 'Profile': JsonConverters.toJson(Profile,'CourierBookProfile',context!), 'Profiles': JsonConverters.toJson(Profiles,'List',context!), 'CardEnabled': CardEnabled, 'PublishableKey': PublishableKey, 'AppUrl': AppUrl, 'Today': Today, 'Weekday': Weekday, 'NowMin': NowMin }; getTypeName() => "CourierBookPageView"; TypeContext? context = _ctx; } class CourierBookPageResponse implements IConvertible { CourierBookPageView? Page; ResponseStatus? ResponseStatus; CourierBookPageResponse({this.Page,this.ResponseStatus}); CourierBookPageResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Page = JsonConverters.fromJson(json['Page'],'CourierBookPageView',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Page': JsonConverters.toJson(Page,'CourierBookPageView',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "CourierBookPageResponse"; TypeContext? context = _ctx; } // @Route("/v1/book/{Slug}", "GET,OPTIONS") class CourierBookPageRequest implements IReturn, IConvertible, IGet { String? Slug; String? Profile; CourierBookPageRequest({this.Slug,this.Profile}); CourierBookPageRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Slug = json['Slug']; Profile = json['Profile']; return this; } Map toJson() => { 'Slug': Slug, 'Profile': Profile }; createResponse() => CourierBookPageResponse(); getResponseTypeName() => "CourierBookPageResponse"; getTypeName() => "CourierBookPageRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'CourierTrackBusiness': TypeInfo(TypeOf.Class, create:() => CourierTrackBusiness()), 'CourierBookLevel': TypeInfo(TypeOf.Class, create:() => CourierBookLevel()), 'HandoffOptions': TypeInfo(TypeOf.Class, create:() => HandoffOptions()), 'CourierBookProfile': TypeInfo(TypeOf.Class, create:() => CourierBookProfile()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CourierBookProfileLink': TypeInfo(TypeOf.Class, create:() => CourierBookProfileLink()), 'CourierBookPageView': TypeInfo(TypeOf.Class, create:() => CourierBookPageView()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CourierBookPageResponse': TypeInfo(TypeOf.Class, create:() => CourierBookPageResponse()), 'CourierBookPageRequest': TypeInfo(TypeOf.Class, create:() => CourierBookPageRequest()), });