/* Options: Date: 2026-09-05 08:47:56 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: DispatchPickupPageRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class DispatchZoneView implements IConvertible { String? Zone; double? Base; double? PerBag; double? PremiumUpliftPct; int? Drivers; int? IdleDrivers; DispatchZoneView({this.Zone,this.Base,this.PerBag,this.PremiumUpliftPct,this.Drivers,this.IdleDrivers}); DispatchZoneView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Zone = json['Zone']; Base = JsonConverters.toDouble(json['Base']); PerBag = JsonConverters.toDouble(json['PerBag']); PremiumUpliftPct = JsonConverters.toDouble(json['PremiumUpliftPct']); Drivers = json['Drivers']; IdleDrivers = json['IdleDrivers']; return this; } Map toJson() => { 'Zone': Zone, 'Base': Base, 'PerBag': PerBag, 'PremiumUpliftPct': PremiumUpliftPct, 'Drivers': Drivers, 'IdleDrivers': IdleDrivers }; getTypeName() => "DispatchZoneView"; TypeContext? context = _ctx; } class DispatchNeedView implements IConvertible { String? Id; String? Label; String? Sub; DispatchNeedView({this.Id,this.Label,this.Sub}); DispatchNeedView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Label = json['Label']; Sub = json['Sub']; return this; } Map toJson() => { 'Id': Id, 'Label': Label, 'Sub': Sub }; getTypeName() => "DispatchNeedView"; TypeContext? context = _ctx; } class DispatchPickupPageResponse implements IConvertible { String? CompanyName; List? Zones = []; List? Needs = []; bool? CardEnabled; String? PublishableKey; ResponseStatus? ResponseStatus; DispatchPickupPageResponse({this.CompanyName,this.Zones,this.Needs,this.CardEnabled,this.PublishableKey,this.ResponseStatus}); DispatchPickupPageResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { CompanyName = json['CompanyName']; Zones = JsonConverters.fromJson(json['Zones'],'List',context!); Needs = JsonConverters.fromJson(json['Needs'],'List',context!); CardEnabled = json['CardEnabled']; PublishableKey = json['PublishableKey']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'CompanyName': CompanyName, 'Zones': JsonConverters.toJson(Zones,'List',context!), 'Needs': JsonConverters.toJson(Needs,'List',context!), 'CardEnabled': CardEnabled, 'PublishableKey': PublishableKey, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "DispatchPickupPageResponse"; TypeContext? context = _ctx; } // @Route("/v1/dispatch/public/pickup/{SchedulerUrl}", "GET,OPTIONS") class DispatchPickupPageRequest implements IReturn, IConvertible, IGet { String? SchedulerUrl; DispatchPickupPageRequest({this.SchedulerUrl}); DispatchPickupPageRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SchedulerUrl = json['SchedulerUrl']; return this; } Map toJson() => { 'SchedulerUrl': SchedulerUrl }; createResponse() => DispatchPickupPageResponse(); getResponseTypeName() => "DispatchPickupPageResponse"; getTypeName() => "DispatchPickupPageRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'DispatchZoneView': TypeInfo(TypeOf.Class, create:() => DispatchZoneView()), 'DispatchNeedView': TypeInfo(TypeOf.Class, create:() => DispatchNeedView()), 'DispatchPickupPageResponse': TypeInfo(TypeOf.Class, create:() => DispatchPickupPageResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DispatchPickupPageRequest': TypeInfo(TypeOf.Class, create:() => DispatchPickupPageRequest()), });