/* Options: Date: 2026-09-05 07:56:52 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: DispatchTrackRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class DispatchTrackStepView implements IConvertible { String? Name; DateTime? At; bool? Done; bool? Current; DispatchTrackStepView({this.Name,this.At,this.Done,this.Current}); DispatchTrackStepView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Name = json['Name']; At = JsonConverters.fromJson(json['At'],'DateTime',context!); Done = json['Done']; Current = json['Current']; return this; } Map toJson() => { 'Name': Name, 'At': JsonConverters.toJson(At,'DateTime',context!), 'Done': Done, 'Current': Current }; getTypeName() => "DispatchTrackStepView"; TypeContext? context = _ctx; } class DispatchTrackResponse implements IConvertible { String? Kind; String? Code; String? What; String? FromLoc; String? ToLoc; int? Bags; double? Fare; String? PayMode; String? CardLast4; bool? Charged; String? Stage; String? Headline; String? Sub; bool? IsClosed; String? Eta; String? DriverName; String? CustomerName; List? Steps = []; bool? Expired; bool? Invalid; ResponseStatus? ResponseStatus; DispatchTrackResponse({this.Kind,this.Code,this.What,this.FromLoc,this.ToLoc,this.Bags,this.Fare,this.PayMode,this.CardLast4,this.Charged,this.Stage,this.Headline,this.Sub,this.IsClosed,this.Eta,this.DriverName,this.CustomerName,this.Steps,this.Expired,this.Invalid,this.ResponseStatus}); DispatchTrackResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Kind = json['Kind']; Code = json['Code']; What = json['What']; FromLoc = json['FromLoc']; ToLoc = json['ToLoc']; Bags = json['Bags']; Fare = JsonConverters.toDouble(json['Fare']); PayMode = json['PayMode']; CardLast4 = json['CardLast4']; Charged = json['Charged']; Stage = json['Stage']; Headline = json['Headline']; Sub = json['Sub']; IsClosed = json['IsClosed']; Eta = json['Eta']; DriverName = json['DriverName']; CustomerName = json['CustomerName']; Steps = JsonConverters.fromJson(json['Steps'],'List',context!); Expired = json['Expired']; Invalid = json['Invalid']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Kind': Kind, 'Code': Code, 'What': What, 'FromLoc': FromLoc, 'ToLoc': ToLoc, 'Bags': Bags, 'Fare': Fare, 'PayMode': PayMode, 'CardLast4': CardLast4, 'Charged': Charged, 'Stage': Stage, 'Headline': Headline, 'Sub': Sub, 'IsClosed': IsClosed, 'Eta': Eta, 'DriverName': DriverName, 'CustomerName': CustomerName, 'Steps': JsonConverters.toJson(Steps,'List',context!), 'Expired': Expired, 'Invalid': Invalid, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "DispatchTrackResponse"; TypeContext? context = _ctx; } // @Route("/v1/dispatch/track/{Token}/json", "GET,OPTIONS") class DispatchTrackRequest implements IReturn, IConvertible, IGet { String? Token; DispatchTrackRequest({this.Token}); DispatchTrackRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Token = json['Token']; return this; } Map toJson() => { 'Token': Token }; createResponse() => DispatchTrackResponse(); getResponseTypeName() => "DispatchTrackResponse"; getTypeName() => "DispatchTrackRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'DispatchTrackStepView': TypeInfo(TypeOf.Class, create:() => DispatchTrackStepView()), 'DispatchTrackResponse': TypeInfo(TypeOf.Class, create:() => DispatchTrackResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DispatchTrackRequest': TypeInfo(TypeOf.Class, create:() => DispatchTrackRequest()), });