/* Options: Date: 2026-09-05 08:47:40 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: DispatchPickupQuoteRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class DispatchPickupQuoteResponse implements IConvertible { String? Zone; int? Bags; double? Fare; ResponseStatus? ResponseStatus; DispatchPickupQuoteResponse({this.Zone,this.Bags,this.Fare,this.ResponseStatus}); DispatchPickupQuoteResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Zone = json['Zone']; Bags = json['Bags']; Fare = JsonConverters.toDouble(json['Fare']); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Zone': Zone, 'Bags': Bags, 'Fare': Fare, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "DispatchPickupQuoteResponse"; TypeContext? context = _ctx; } // @Route("/v1/dispatch/public/pickup/{SchedulerUrl}/quote", "POST,OPTIONS") class DispatchPickupQuoteRequest implements IReturn, IConvertible, IPost { String? SchedulerUrl; String? Zone; int? Bags; List? Needs = []; DispatchPickupQuoteRequest({this.SchedulerUrl,this.Zone,this.Bags,this.Needs}); DispatchPickupQuoteRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SchedulerUrl = json['SchedulerUrl']; Zone = json['Zone']; Bags = json['Bags']; Needs = JsonConverters.fromJson(json['Needs'],'List',context!); return this; } Map toJson() => { 'SchedulerUrl': SchedulerUrl, 'Zone': Zone, 'Bags': Bags, 'Needs': JsonConverters.toJson(Needs,'List',context!) }; createResponse() => DispatchPickupQuoteResponse(); getResponseTypeName() => "DispatchPickupQuoteResponse"; getTypeName() => "DispatchPickupQuoteRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'DispatchPickupQuoteResponse': TypeInfo(TypeOf.Class, create:() => DispatchPickupQuoteResponse()), 'DispatchPickupQuoteRequest': TypeInfo(TypeOf.Class, create:() => DispatchPickupQuoteRequest()), });