/* Options: Date: 2026-10-12 01:39:07 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: CourierProfilePreviewRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class CourierPay implements IConvertible { String? WorkerClass; double? PerPickup; double? PerStop; double? PerMissed; double? PerCancel; int? WaitAfterMin; double? WaitPerMin; bool? MileageOn; double? PerMile; double? MinPerJob; double? TipsPct; CourierPay({this.WorkerClass,this.PerPickup,this.PerStop,this.PerMissed,this.PerCancel,this.WaitAfterMin,this.WaitPerMin,this.MileageOn,this.PerMile,this.MinPerJob,this.TipsPct}); CourierPay.fromJson(Map json) { fromMap(json); } fromMap(Map json) { WorkerClass = json['WorkerClass']; PerPickup = JsonConverters.toDouble(json['PerPickup']); PerStop = JsonConverters.toDouble(json['PerStop']); PerMissed = JsonConverters.toDouble(json['PerMissed']); PerCancel = JsonConverters.toDouble(json['PerCancel']); WaitAfterMin = json['WaitAfterMin']; WaitPerMin = JsonConverters.toDouble(json['WaitPerMin']); MileageOn = json['MileageOn']; PerMile = JsonConverters.toDouble(json['PerMile']); MinPerJob = JsonConverters.toDouble(json['MinPerJob']); TipsPct = JsonConverters.toDouble(json['TipsPct']); return this; } Map toJson() => { 'WorkerClass': WorkerClass, 'PerPickup': PerPickup, 'PerStop': PerStop, 'PerMissed': PerMissed, 'PerCancel': PerCancel, 'WaitAfterMin': WaitAfterMin, 'WaitPerMin': WaitPerMin, 'MileageOn': MileageOn, 'PerMile': PerMile, 'MinPerJob': MinPerJob, 'TipsPct': TipsPct }; getTypeName() => "CourierPay"; TypeContext? context = _ctx; } class CourierDispatch implements IConvertible { int? PingSecs; double? RadiusMi; bool? DeclinePenalty; String? NextRule; int? GoMin; int? LastMin; int? NearFull; int? MarginMin; String? TrafficSource; CourierDispatch({this.PingSecs,this.RadiusMi,this.DeclinePenalty,this.NextRule,this.GoMin,this.LastMin,this.NearFull,this.MarginMin,this.TrafficSource}); CourierDispatch.fromJson(Map json) { fromMap(json); } fromMap(Map json) { PingSecs = json['PingSecs']; RadiusMi = JsonConverters.toDouble(json['RadiusMi']); DeclinePenalty = json['DeclinePenalty']; NextRule = json['NextRule']; GoMin = json['GoMin']; LastMin = json['LastMin']; NearFull = json['NearFull']; MarginMin = json['MarginMin']; TrafficSource = json['TrafficSource']; return this; } Map toJson() => { 'PingSecs': PingSecs, 'RadiusMi': RadiusMi, 'DeclinePenalty': DeclinePenalty, 'NextRule': NextRule, 'GoMin': GoMin, 'LastMin': LastMin, 'NearFull': NearFull, 'MarginMin': MarginMin, 'TrafficSource': TrafficSource }; getTypeName() => "CourierDispatch"; TypeContext? context = _ctx; } class CourierMissed implements IConvertible { int? WaitMin; double? Fee; double? CancelFee; bool? AutoRebook; bool? RequireContact; bool? RequirePhoto; CourierMissed({this.WaitMin,this.Fee,this.CancelFee,this.AutoRebook,this.RequireContact,this.RequirePhoto}); CourierMissed.fromJson(Map json) { fromMap(json); } fromMap(Map json) { WaitMin = json['WaitMin']; Fee = JsonConverters.toDouble(json['Fee']); CancelFee = JsonConverters.toDouble(json['CancelFee']); AutoRebook = json['AutoRebook']; RequireContact = json['RequireContact']; RequirePhoto = json['RequirePhoto']; return this; } Map toJson() => { 'WaitMin': WaitMin, 'Fee': Fee, 'CancelFee': CancelFee, 'AutoRebook': AutoRebook, 'RequireContact': RequireContact, 'RequirePhoto': RequirePhoto }; getTypeName() => "CourierMissed"; TypeContext? context = _ctx; } class CourierPrivacy implements IConvertible { int? ThreadHrs; int? PhotoDays; String? LockNames; bool? HideAddr; bool? LiveEta; bool? Tipping; CourierPrivacy({this.ThreadHrs,this.PhotoDays,this.LockNames,this.HideAddr,this.LiveEta,this.Tipping}); CourierPrivacy.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ThreadHrs = json['ThreadHrs']; PhotoDays = json['PhotoDays']; LockNames = json['LockNames']; HideAddr = json['HideAddr']; LiveEta = json['LiveEta']; Tipping = json['Tipping']; return this; } Map toJson() => { 'ThreadHrs': ThreadHrs, 'PhotoDays': PhotoDays, 'LockNames': LockNames, 'HideAddr': HideAddr, 'LiveEta': LiveEta, 'Tipping': Tipping }; getTypeName() => "CourierPrivacy"; TypeContext? context = _ctx; } class CourierPricing implements IConvertible { double? Base; double? PerUnit; double? PerMile; double? MinOrder; double? TaxPct; bool? FinalAfterCount; List? ServiceArea = []; int? WindowMin; Map? Surcharges = {}; CourierPricing({this.Base,this.PerUnit,this.PerMile,this.MinOrder,this.TaxPct,this.FinalAfterCount,this.ServiceArea,this.WindowMin,this.Surcharges}); CourierPricing.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Base = JsonConverters.toDouble(json['Base']); PerUnit = JsonConverters.toDouble(json['PerUnit']); PerMile = JsonConverters.toDouble(json['PerMile']); MinOrder = JsonConverters.toDouble(json['MinOrder']); TaxPct = JsonConverters.toDouble(json['TaxPct']); FinalAfterCount = json['FinalAfterCount']; ServiceArea = JsonConverters.fromJson(json['ServiceArea'],'List',context!); WindowMin = json['WindowMin']; Surcharges = JsonConverters.fromJson(json['Surcharges'],'Map',context!); return this; } Map toJson() => { 'Base': Base, 'PerUnit': PerUnit, 'PerMile': PerMile, 'MinOrder': MinOrder, 'TaxPct': TaxPct, 'FinalAfterCount': FinalAfterCount, 'ServiceArea': JsonConverters.toJson(ServiceArea,'List',context!), 'WindowMin': WindowMin, 'Surcharges': JsonConverters.toJson(Surcharges,'Map',context!) }; getTypeName() => "CourierPricing"; TypeContext? context = _ctx; } class CourierBooking implements IConvertible { bool? On; String? Slug; bool? Asap; int? MinLeadMin; String? Open; String? Close; int? DriveBufferMin; List? Zips = []; bool? Recurring; String? PayTiming; CourierBooking({this.On,this.Slug,this.Asap,this.MinLeadMin,this.Open,this.Close,this.DriveBufferMin,this.Zips,this.Recurring,this.PayTiming}); CourierBooking.fromJson(Map json) { fromMap(json); } fromMap(Map json) { On = json['On']; Slug = json['Slug']; Asap = json['Asap']; MinLeadMin = json['MinLeadMin']; Open = json['Open']; Close = json['Close']; DriveBufferMin = json['DriveBufferMin']; Zips = JsonConverters.fromJson(json['Zips'],'List',context!); Recurring = json['Recurring']; PayTiming = json['PayTiming']; return this; } Map toJson() => { 'On': On, 'Slug': Slug, 'Asap': Asap, 'MinLeadMin': MinLeadMin, 'Open': Open, 'Close': Close, 'DriveBufferMin': DriveBufferMin, 'Zips': JsonConverters.toJson(Zips,'List',context!), 'Recurring': Recurring, 'PayTiming': PayTiming }; getTypeName() => "CourierBooking"; TypeContext? context = _ctx; } class CourierLevelView implements IConvertible { String? Code; String? Name; String? InBy; int? WithinMin; String? Ready; List? Days = []; bool? IsOn; CourierLevelView({this.Code,this.Name,this.InBy,this.WithinMin,this.Ready,this.Days,this.IsOn}); CourierLevelView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Code = json['Code']; Name = json['Name']; InBy = json['InBy']; WithinMin = json['WithinMin']; Ready = json['Ready']; Days = JsonConverters.fromJson(json['Days'],'List',context!); IsOn = json['IsOn']; return this; } Map toJson() => { 'Code': Code, 'Name': Name, 'InBy': InBy, 'WithinMin': WithinMin, 'Ready': Ready, 'Days': JsonConverters.toJson(Days,'List',context!), 'IsOn': IsOn }; getTypeName() => "CourierLevelView"; TypeContext? context = _ctx; } class CourierFacilityView implements IConvertible { String? Code; String? Name; String? Address; int? IntakeMin; List? Levels = []; List? Holidays = []; CourierFacilityView({this.Code,this.Name,this.Address,this.IntakeMin,this.Levels,this.Holidays}); CourierFacilityView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Code = json['Code']; Name = json['Name']; Address = json['Address']; IntakeMin = json['IntakeMin']; Levels = JsonConverters.fromJson(json['Levels'],'List',context!); Holidays = JsonConverters.fromJson(json['Holidays'],'List',context!); return this; } Map toJson() => { 'Code': Code, 'Name': Name, 'Address': Address, 'IntakeMin': IntakeMin, 'Levels': JsonConverters.toJson(Levels,'List',context!), 'Holidays': JsonConverters.toJson(Holidays,'List',context!) }; getTypeName() => "CourierFacilityView"; TypeContext? context = _ctx; } class CourierVehicleView implements IConvertible { int? EquipmentID; String? UnitNumber; String? Name; String? Unit; double? Cap; bool? Cold; CourierVehicleView({this.EquipmentID,this.UnitNumber,this.Name,this.Unit,this.Cap,this.Cold}); CourierVehicleView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { EquipmentID = json['EquipmentID']; UnitNumber = json['UnitNumber']; Name = json['Name']; Unit = json['Unit']; Cap = JsonConverters.toDouble(json['Cap']); Cold = json['Cold']; return this; } Map toJson() => { 'EquipmentID': EquipmentID, 'UnitNumber': UnitNumber, 'Name': Name, 'Unit': Unit, 'Cap': Cap, 'Cold': Cold }; getTypeName() => "CourierVehicleView"; TypeContext? context = _ctx; } class CourierProfileContext implements IConvertible { int? Drivers; int? ProfileCount; int? PayPlanId; String? ZoneMode; String? ZoneName; int? ZoneCount; bool? HasBookingPage; bool? HasRateConfig; Map? VehicleFacts = {}; CourierProfileContext({this.Drivers,this.ProfileCount,this.PayPlanId,this.ZoneMode,this.ZoneName,this.ZoneCount,this.HasBookingPage,this.HasRateConfig,this.VehicleFacts}); CourierProfileContext.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Drivers = json['Drivers']; ProfileCount = json['ProfileCount']; PayPlanId = json['PayPlanId']; ZoneMode = json['ZoneMode']; ZoneName = json['ZoneName']; ZoneCount = json['ZoneCount']; HasBookingPage = json['HasBookingPage']; HasRateConfig = json['HasRateConfig']; VehicleFacts = JsonConverters.toStringMap(json['VehicleFacts']); return this; } Map toJson() => { 'Drivers': Drivers, 'ProfileCount': ProfileCount, 'PayPlanId': PayPlanId, 'ZoneMode': ZoneMode, 'ZoneName': ZoneName, 'ZoneCount': ZoneCount, 'HasBookingPage': HasBookingPage, 'HasRateConfig': HasRateConfig, 'VehicleFacts': VehicleFacts }; getTypeName() => "CourierProfileContext"; TypeContext? context = _ctx; } class CourierProfileView implements IConvertible { int? CourierProfileID; String? Code; String? Name; String? BusinessName; String? RouteShape; bool? Enabled; String? TemplateFrom; String? UnitOne; String? UnitMany; String? FacilityNoun; String? UnitOneEs; String? UnitManyEs; String? FacilityNounEs; String? TagMode; List? TagFormats = []; CourierPay? Pay; CourierDispatch? Dispatch; CourierMissed? Missed; CourierPrivacy? Privacy; CourierPricing? Pricing; CourierBooking? Booking; List? Facilities = []; List? Vehicles = []; Map?>? Proof = {}; CourierProfileContext? Context; CourierProfileView({this.CourierProfileID,this.Code,this.Name,this.BusinessName,this.RouteShape,this.Enabled,this.TemplateFrom,this.UnitOne,this.UnitMany,this.FacilityNoun,this.UnitOneEs,this.UnitManyEs,this.FacilityNounEs,this.TagMode,this.TagFormats,this.Pay,this.Dispatch,this.Missed,this.Privacy,this.Pricing,this.Booking,this.Facilities,this.Vehicles,this.Proof,this.Context}); CourierProfileView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CourierProfileID = json['CourierProfileID']; Code = json['Code']; Name = json['Name']; BusinessName = json['BusinessName']; RouteShape = json['RouteShape']; Enabled = json['Enabled']; TemplateFrom = json['TemplateFrom']; UnitOne = json['UnitOne']; UnitMany = json['UnitMany']; FacilityNoun = json['FacilityNoun']; UnitOneEs = json['UnitOneEs']; UnitManyEs = json['UnitManyEs']; FacilityNounEs = json['FacilityNounEs']; TagMode = json['TagMode']; TagFormats = JsonConverters.fromJson(json['TagFormats'],'List',context!); Pay = JsonConverters.fromJson(json['Pay'],'CourierPay',context!); Dispatch = JsonConverters.fromJson(json['Dispatch'],'CourierDispatch',context!); Missed = JsonConverters.fromJson(json['Missed'],'CourierMissed',context!); Privacy = JsonConverters.fromJson(json['Privacy'],'CourierPrivacy',context!); Pricing = JsonConverters.fromJson(json['Pricing'],'CourierPricing',context!); Booking = JsonConverters.fromJson(json['Booking'],'CourierBooking',context!); Facilities = JsonConverters.fromJson(json['Facilities'],'List',context!); Vehicles = JsonConverters.fromJson(json['Vehicles'],'List',context!); Proof = JsonConverters.fromJson(json['Proof'],'Map?>',context!); Context = JsonConverters.fromJson(json['Context'],'CourierProfileContext',context!); return this; } Map toJson() => { 'CourierProfileID': CourierProfileID, 'Code': Code, 'Name': Name, 'BusinessName': BusinessName, 'RouteShape': RouteShape, 'Enabled': Enabled, 'TemplateFrom': TemplateFrom, 'UnitOne': UnitOne, 'UnitMany': UnitMany, 'FacilityNoun': FacilityNoun, 'UnitOneEs': UnitOneEs, 'UnitManyEs': UnitManyEs, 'FacilityNounEs': FacilityNounEs, 'TagMode': TagMode, 'TagFormats': JsonConverters.toJson(TagFormats,'List',context!), 'Pay': JsonConverters.toJson(Pay,'CourierPay',context!), 'Dispatch': JsonConverters.toJson(Dispatch,'CourierDispatch',context!), 'Missed': JsonConverters.toJson(Missed,'CourierMissed',context!), 'Privacy': JsonConverters.toJson(Privacy,'CourierPrivacy',context!), 'Pricing': JsonConverters.toJson(Pricing,'CourierPricing',context!), 'Booking': JsonConverters.toJson(Booking,'CourierBooking',context!), 'Facilities': JsonConverters.toJson(Facilities,'List',context!), 'Vehicles': JsonConverters.toJson(Vehicles,'List',context!), 'Proof': JsonConverters.toJson(Proof,'Map?>',context!), 'Context': JsonConverters.toJson(Context,'CourierProfileContext',context!) }; getTypeName() => "CourierProfileView"; TypeContext? context = _ctx; } class CourierProfileSummary implements IConvertible { int? CourierProfileID; String? Code; String? Name; String? BusinessName; String? RouteShape; bool? Enabled; String? TemplateFrom; int? Drivers; CourierProfileSummary({this.CourierProfileID,this.Code,this.Name,this.BusinessName,this.RouteShape,this.Enabled,this.TemplateFrom,this.Drivers}); CourierProfileSummary.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CourierProfileID = json['CourierProfileID']; Code = json['Code']; Name = json['Name']; BusinessName = json['BusinessName']; RouteShape = json['RouteShape']; Enabled = json['Enabled']; TemplateFrom = json['TemplateFrom']; Drivers = json['Drivers']; return this; } Map toJson() => { 'CourierProfileID': CourierProfileID, 'Code': Code, 'Name': Name, 'BusinessName': BusinessName, 'RouteShape': RouteShape, 'Enabled': Enabled, 'TemplateFrom': TemplateFrom, 'Drivers': Drivers }; getTypeName() => "CourierProfileSummary"; TypeContext? context = _ctx; } class CourierTemplateOption implements IConvertible { String? Key; String? Label; String? Detail; String? RouteShape; CourierTemplateOption({this.Key,this.Label,this.Detail,this.RouteShape}); CourierTemplateOption.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Key = json['Key']; Label = json['Label']; Detail = json['Detail']; RouteShape = json['RouteShape']; return this; } Map toJson() => { 'Key': Key, 'Label': Label, 'Detail': Detail, 'RouteShape': RouteShape }; getTypeName() => "CourierTemplateOption"; TypeContext? context = _ctx; } class CourierIssue implements IConvertible { String? Key; String? Section; String? Message; CourierIssue({this.Key,this.Section,this.Message}); CourierIssue.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Key = json['Key']; Section = json['Section']; Message = json['Message']; return this; } Map toJson() => { 'Key': Key, 'Section': Section, 'Message': Message }; getTypeName() => "CourierIssue"; TypeContext? context = _ctx; } class CourierChange implements IConvertible { String? Key; String? Section; String? Label; String? From; String? To; CourierChange({this.Key,this.Section,this.Label,this.From,this.To}); CourierChange.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Key = json['Key']; Section = json['Section']; Label = json['Label']; From = json['From']; To = json['To']; return this; } Map toJson() => { 'Key': Key, 'Section': Section, 'Label': Label, 'From': From, 'To': To }; getTypeName() => "CourierChange"; TypeContext? context = _ctx; } class CourierPreviewLine implements IConvertible { String? K; String? V; String? Dot; CourierPreviewLine({this.K,this.V,this.Dot}); CourierPreviewLine.fromJson(Map json) { fromMap(json); } fromMap(Map json) { K = json['K']; V = json['V']; Dot = json['Dot']; return this; } Map toJson() => { 'K': K, 'V': V, 'Dot': Dot }; getTypeName() => "CourierPreviewLine"; TypeContext? context = _ctx; } class CourierPreview implements IConvertible { String? DeadlineTitle; String? DeadlineLead; String? RoomW; String? LastW; String? GoW; List? Zones = []; String? PaySub; List? PayRows = []; String? PayTotal; List? ProofRows = []; String? Ping; CourierPreview({this.DeadlineTitle,this.DeadlineLead,this.RoomW,this.LastW,this.GoW,this.Zones,this.PaySub,this.PayRows,this.PayTotal,this.ProofRows,this.Ping}); CourierPreview.fromJson(Map json) { fromMap(json); } fromMap(Map json) { DeadlineTitle = json['DeadlineTitle']; DeadlineLead = json['DeadlineLead']; RoomW = json['RoomW']; LastW = json['LastW']; GoW = json['GoW']; Zones = JsonConverters.fromJson(json['Zones'],'List',context!); PaySub = json['PaySub']; PayRows = JsonConverters.fromJson(json['PayRows'],'List',context!); PayTotal = json['PayTotal']; ProofRows = JsonConverters.fromJson(json['ProofRows'],'List',context!); Ping = json['Ping']; return this; } Map toJson() => { 'DeadlineTitle': DeadlineTitle, 'DeadlineLead': DeadlineLead, 'RoomW': RoomW, 'LastW': LastW, 'GoW': GoW, 'Zones': JsonConverters.toJson(Zones,'List',context!), 'PaySub': PaySub, 'PayRows': JsonConverters.toJson(PayRows,'List',context!), 'PayTotal': PayTotal, 'ProofRows': JsonConverters.toJson(ProofRows,'List',context!), 'Ping': Ping }; getTypeName() => "CourierPreview"; TypeContext? context = _ctx; } class CourierFleetVehicle implements IConvertible { int? EquipmentID; String? UnitNumber; String? Name; String? VehicleType; String? Unit; double? Cap; bool? Cold; String? Status; bool? Assigned; CourierFleetVehicle({this.EquipmentID,this.UnitNumber,this.Name,this.VehicleType,this.Unit,this.Cap,this.Cold,this.Status,this.Assigned}); CourierFleetVehicle.fromJson(Map json) { fromMap(json); } fromMap(Map json) { EquipmentID = json['EquipmentID']; UnitNumber = json['UnitNumber']; Name = json['Name']; VehicleType = json['VehicleType']; Unit = json['Unit']; Cap = JsonConverters.toDouble(json['Cap']); Cold = json['Cold']; Status = json['Status']; Assigned = json['Assigned']; return this; } Map toJson() => { 'EquipmentID': EquipmentID, 'UnitNumber': UnitNumber, 'Name': Name, 'VehicleType': VehicleType, 'Unit': Unit, 'Cap': Cap, 'Cold': Cold, 'Status': Status, 'Assigned': Assigned }; getTypeName() => "CourierFleetVehicle"; TypeContext? context = _ctx; } class CourierResponse implements IConvertible { List? Profiles = []; List? Templates = []; CourierProfileView? Profile; List? Issues = []; List? Changes = []; CourierPreview? Preview; List? Fleet = []; ResponseStatus? ResponseStatus; CourierResponse({this.Profiles,this.Templates,this.Profile,this.Issues,this.Changes,this.Preview,this.Fleet,this.ResponseStatus}); CourierResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Profiles = JsonConverters.fromJson(json['Profiles'],'List',context!); Templates = JsonConverters.fromJson(json['Templates'],'List',context!); Profile = JsonConverters.fromJson(json['Profile'],'CourierProfileView',context!); Issues = JsonConverters.fromJson(json['Issues'],'List',context!); Changes = JsonConverters.fromJson(json['Changes'],'List',context!); Preview = JsonConverters.fromJson(json['Preview'],'CourierPreview',context!); Fleet = JsonConverters.fromJson(json['Fleet'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Profiles': JsonConverters.toJson(Profiles,'List',context!), 'Templates': JsonConverters.toJson(Templates,'List',context!), 'Profile': JsonConverters.toJson(Profile,'CourierProfileView',context!), 'Issues': JsonConverters.toJson(Issues,'List',context!), 'Changes': JsonConverters.toJson(Changes,'List',context!), 'Preview': JsonConverters.toJson(Preview,'CourierPreview',context!), 'Fleet': JsonConverters.toJson(Fleet,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "CourierResponse"; TypeContext? context = _ctx; } // @Route("/v1/dispatch/courier/profiles/{Id}/preview", "POST,OPTIONS") class CourierProfilePreviewRequest implements IReturn, IConvertible, IPost { int? Id; CourierProfileView? Draft; String? FacilityCode; CourierProfilePreviewRequest({this.Id,this.Draft,this.FacilityCode}); CourierProfilePreviewRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Draft = JsonConverters.fromJson(json['Draft'],'CourierProfileView',context!); FacilityCode = json['FacilityCode']; return this; } Map toJson() => { 'Id': Id, 'Draft': JsonConverters.toJson(Draft,'CourierProfileView',context!), 'FacilityCode': FacilityCode }; createResponse() => CourierResponse(); getResponseTypeName() => "CourierResponse"; getTypeName() => "CourierProfilePreviewRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'CourierPay': TypeInfo(TypeOf.Class, create:() => CourierPay()), 'CourierDispatch': TypeInfo(TypeOf.Class, create:() => CourierDispatch()), 'CourierMissed': TypeInfo(TypeOf.Class, create:() => CourierMissed()), 'CourierPrivacy': TypeInfo(TypeOf.Class, create:() => CourierPrivacy()), 'CourierPricing': TypeInfo(TypeOf.Class, create:() => CourierPricing()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), 'CourierBooking': TypeInfo(TypeOf.Class, create:() => CourierBooking()), 'CourierLevelView': TypeInfo(TypeOf.Class, create:() => CourierLevelView()), 'CourierFacilityView': TypeInfo(TypeOf.Class, create:() => CourierFacilityView()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CourierVehicleView': TypeInfo(TypeOf.Class, create:() => CourierVehicleView()), 'CourierProfileContext': TypeInfo(TypeOf.Class, create:() => CourierProfileContext()), 'CourierProfileView': TypeInfo(TypeOf.Class, create:() => CourierProfileView()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Map?>': TypeInfo(TypeOf.Class, create:() => Map?>()), 'CourierProfileSummary': TypeInfo(TypeOf.Class, create:() => CourierProfileSummary()), 'CourierTemplateOption': TypeInfo(TypeOf.Class, create:() => CourierTemplateOption()), 'CourierIssue': TypeInfo(TypeOf.Class, create:() => CourierIssue()), 'CourierChange': TypeInfo(TypeOf.Class, create:() => CourierChange()), 'CourierPreviewLine': TypeInfo(TypeOf.Class, create:() => CourierPreviewLine()), 'CourierPreview': TypeInfo(TypeOf.Class, create:() => CourierPreview()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CourierFleetVehicle': TypeInfo(TypeOf.Class, create:() => CourierFleetVehicle()), 'CourierResponse': TypeInfo(TypeOf.Class, create:() => CourierResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CourierProfilePreviewRequest': TypeInfo(TypeOf.Class, create:() => CourierProfilePreviewRequest()), });