/* Options: Date: 2026-09-05 08:47:24 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: DispatchQuoteRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class DispatchQuoteView implements IConvertible { String? Code; String? CustomerName; String? Cargo; int? Units; String? FromLoc; String? ToLoc; int? Miles; String? WindowText; bool? IsUrgent; int? LoadsNeeded; int? UnitsPerTruck; double? RatePerLoad; double? UrgencyPct; double? QuoteTotal; int? QuoteVersion; String? Status; DateTime? QuotedUtc; DateTime? ExpiresUtc; DispatchQuoteView({this.Code,this.CustomerName,this.Cargo,this.Units,this.FromLoc,this.ToLoc,this.Miles,this.WindowText,this.IsUrgent,this.LoadsNeeded,this.UnitsPerTruck,this.RatePerLoad,this.UrgencyPct,this.QuoteTotal,this.QuoteVersion,this.Status,this.QuotedUtc,this.ExpiresUtc}); DispatchQuoteView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Code = json['Code']; CustomerName = json['CustomerName']; Cargo = json['Cargo']; Units = json['Units']; FromLoc = json['FromLoc']; ToLoc = json['ToLoc']; Miles = json['Miles']; WindowText = json['WindowText']; IsUrgent = json['IsUrgent']; LoadsNeeded = json['LoadsNeeded']; UnitsPerTruck = json['UnitsPerTruck']; RatePerLoad = JsonConverters.toDouble(json['RatePerLoad']); UrgencyPct = JsonConverters.toDouble(json['UrgencyPct']); QuoteTotal = JsonConverters.toDouble(json['QuoteTotal']); QuoteVersion = json['QuoteVersion']; Status = json['Status']; QuotedUtc = JsonConverters.fromJson(json['QuotedUtc'],'DateTime',context!); ExpiresUtc = JsonConverters.fromJson(json['ExpiresUtc'],'DateTime',context!); return this; } Map toJson() => { 'Code': Code, 'CustomerName': CustomerName, 'Cargo': Cargo, 'Units': Units, 'FromLoc': FromLoc, 'ToLoc': ToLoc, 'Miles': Miles, 'WindowText': WindowText, 'IsUrgent': IsUrgent, 'LoadsNeeded': LoadsNeeded, 'UnitsPerTruck': UnitsPerTruck, 'RatePerLoad': RatePerLoad, 'UrgencyPct': UrgencyPct, 'QuoteTotal': QuoteTotal, 'QuoteVersion': QuoteVersion, 'Status': Status, 'QuotedUtc': JsonConverters.toJson(QuotedUtc,'DateTime',context!), 'ExpiresUtc': JsonConverters.toJson(ExpiresUtc,'DateTime',context!) }; getTypeName() => "DispatchQuoteView"; TypeContext? context = _ctx; } class DispatchQuoteResponse implements IConvertible { DispatchQuoteView? Quote; ResponseStatus? ResponseStatus; DispatchQuoteResponse({this.Quote,this.ResponseStatus}); DispatchQuoteResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Quote = JsonConverters.fromJson(json['Quote'],'DispatchQuoteView',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Quote': JsonConverters.toJson(Quote,'DispatchQuoteView',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "DispatchQuoteResponse"; TypeContext? context = _ctx; } // @Route("/v1/dispatch/quote/{Token}/json", "GET,OPTIONS") class DispatchQuoteRequest implements IReturn, IConvertible, IGet { String? Token; DispatchQuoteRequest({this.Token}); DispatchQuoteRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Token = json['Token']; return this; } Map toJson() => { 'Token': Token }; createResponse() => DispatchQuoteResponse(); getResponseTypeName() => "DispatchQuoteResponse"; getTypeName() => "DispatchQuoteRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'DispatchQuoteView': TypeInfo(TypeOf.Class, create:() => DispatchQuoteView()), 'DispatchQuoteResponse': TypeInfo(TypeOf.Class, create:() => DispatchQuoteResponse()), 'DispatchQuoteRequest': TypeInfo(TypeOf.Class, create:() => DispatchQuoteRequest()), });