/* Options: Date: 2026-09-05 07:07:48 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: DispatchPickupBookRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class DispatchPickupBookResponse implements IConvertible { String? Code; double? Fare; String? Zone; int? Bags; String? PayMode; String? PayLine; String? TrackUrl; String? BookToken; String? ClientSecret; String? PublishableKey; String? Delivery; ResponseStatus? ResponseStatus; DispatchPickupBookResponse({this.Code,this.Fare,this.Zone,this.Bags,this.PayMode,this.PayLine,this.TrackUrl,this.BookToken,this.ClientSecret,this.PublishableKey,this.Delivery,this.ResponseStatus}); DispatchPickupBookResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Code = json['Code']; Fare = JsonConverters.toDouble(json['Fare']); Zone = json['Zone']; Bags = json['Bags']; PayMode = json['PayMode']; PayLine = json['PayLine']; TrackUrl = json['TrackUrl']; BookToken = json['BookToken']; ClientSecret = json['ClientSecret']; PublishableKey = json['PublishableKey']; Delivery = json['Delivery']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Code': Code, 'Fare': Fare, 'Zone': Zone, 'Bags': Bags, 'PayMode': PayMode, 'PayLine': PayLine, 'TrackUrl': TrackUrl, 'BookToken': BookToken, 'ClientSecret': ClientSecret, 'PublishableKey': PublishableKey, 'Delivery': Delivery, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "DispatchPickupBookResponse"; TypeContext? context = _ctx; } // @Route("/v1/dispatch/public/pickup/{SchedulerUrl}", "POST,OPTIONS") class DispatchPickupBookRequest implements IReturn, IConvertible, IPost { String? SchedulerUrl; String? Address; String? Unit; String? City; String? Zip; String? Zone; int? Bags; List? Needs = []; String? Note; String? CustomerName; String? CustomerPhone; String? PayMode; String? AccountCode; String? TurnstileToken; DispatchPickupBookRequest({this.SchedulerUrl,this.Address,this.Unit,this.City,this.Zip,this.Zone,this.Bags,this.Needs,this.Note,this.CustomerName,this.CustomerPhone,this.PayMode,this.AccountCode,this.TurnstileToken}); DispatchPickupBookRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SchedulerUrl = json['SchedulerUrl']; Address = json['Address']; Unit = json['Unit']; City = json['City']; Zip = json['Zip']; Zone = json['Zone']; Bags = json['Bags']; Needs = JsonConverters.fromJson(json['Needs'],'List',context!); Note = json['Note']; CustomerName = json['CustomerName']; CustomerPhone = json['CustomerPhone']; PayMode = json['PayMode']; AccountCode = json['AccountCode']; TurnstileToken = json['TurnstileToken']; return this; } Map toJson() => { 'SchedulerUrl': SchedulerUrl, 'Address': Address, 'Unit': Unit, 'City': City, 'Zip': Zip, 'Zone': Zone, 'Bags': Bags, 'Needs': JsonConverters.toJson(Needs,'List',context!), 'Note': Note, 'CustomerName': CustomerName, 'CustomerPhone': CustomerPhone, 'PayMode': PayMode, 'AccountCode': AccountCode, 'TurnstileToken': TurnstileToken }; createResponse() => DispatchPickupBookResponse(); getResponseTypeName() => "DispatchPickupBookResponse"; getTypeName() => "DispatchPickupBookRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'DispatchPickupBookResponse': TypeInfo(TypeOf.Class, create:() => DispatchPickupBookResponse()), 'DispatchPickupBookRequest': TypeInfo(TypeOf.Class, create:() => DispatchPickupBookRequest()), });