/* Options: Date: 2026-09-05 08:25:44 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: DispatchRequestsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class DispatchRequestEventView implements IConvertible { int? EventId; String? Kind; String? Detail; DateTime? AtUtc; String? ByWho; DispatchRequestEventView({this.EventId,this.Kind,this.Detail,this.AtUtc,this.ByWho}); DispatchRequestEventView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { EventId = json['EventId']; Kind = json['Kind']; Detail = json['Detail']; AtUtc = JsonConverters.fromJson(json['AtUtc'],'DateTime',context!); ByWho = json['ByWho']; return this; } Map toJson() => { 'EventId': EventId, 'Kind': Kind, 'Detail': Detail, 'AtUtc': JsonConverters.toJson(AtUtc,'DateTime',context!), 'ByWho': ByWho }; getTypeName() => "DispatchRequestEventView"; TypeContext? context = _ctx; } class DispatchRequestView implements IConvertible { int? RequestId; String? Code; String? CustomerName; String? CustomerPhone; String? CustomerEmail; String? Cargo; int? Units; String? FromLoc; String? ToLoc; int? Miles; String? WindowText; bool? IsUrgent; String? Notes; String? Source; String? Status; String? RequiredRig; int? UnitsPerTruck; double? RatePerLoad; double? UrgencyPct; double? CostPerLoad; int? LoadsNeeded; double? QuoteTotal; int? QuoteVersion; DateTime? QuotedUtc; String? QuotedBy; DateTime? AcceptTokenExpiresUtc; DateTime? AcceptedUtc; String? AcceptedVia; DateTime? DeclinedUtc; String? DeclinedBy; String? DeclineReason; int? JobsCreated; int? JobsDone; int? JobsNeedDriver; DateTime? CreatedUtc; String? CreatedBy; List? Events = []; DispatchRequestView({this.RequestId,this.Code,this.CustomerName,this.CustomerPhone,this.CustomerEmail,this.Cargo,this.Units,this.FromLoc,this.ToLoc,this.Miles,this.WindowText,this.IsUrgent,this.Notes,this.Source,this.Status,this.RequiredRig,this.UnitsPerTruck,this.RatePerLoad,this.UrgencyPct,this.CostPerLoad,this.LoadsNeeded,this.QuoteTotal,this.QuoteVersion,this.QuotedUtc,this.QuotedBy,this.AcceptTokenExpiresUtc,this.AcceptedUtc,this.AcceptedVia,this.DeclinedUtc,this.DeclinedBy,this.DeclineReason,this.JobsCreated,this.JobsDone,this.JobsNeedDriver,this.CreatedUtc,this.CreatedBy,this.Events}); DispatchRequestView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { RequestId = json['RequestId']; Code = json['Code']; CustomerName = json['CustomerName']; CustomerPhone = json['CustomerPhone']; CustomerEmail = json['CustomerEmail']; Cargo = json['Cargo']; Units = json['Units']; FromLoc = json['FromLoc']; ToLoc = json['ToLoc']; Miles = json['Miles']; WindowText = json['WindowText']; IsUrgent = json['IsUrgent']; Notes = json['Notes']; Source = json['Source']; Status = json['Status']; RequiredRig = json['RequiredRig']; UnitsPerTruck = json['UnitsPerTruck']; RatePerLoad = JsonConverters.toDouble(json['RatePerLoad']); UrgencyPct = JsonConverters.toDouble(json['UrgencyPct']); CostPerLoad = JsonConverters.toDouble(json['CostPerLoad']); LoadsNeeded = json['LoadsNeeded']; QuoteTotal = JsonConverters.toDouble(json['QuoteTotal']); QuoteVersion = json['QuoteVersion']; QuotedUtc = JsonConverters.fromJson(json['QuotedUtc'],'DateTime',context!); QuotedBy = json['QuotedBy']; AcceptTokenExpiresUtc = JsonConverters.fromJson(json['AcceptTokenExpiresUtc'],'DateTime',context!); AcceptedUtc = JsonConverters.fromJson(json['AcceptedUtc'],'DateTime',context!); AcceptedVia = json['AcceptedVia']; DeclinedUtc = JsonConverters.fromJson(json['DeclinedUtc'],'DateTime',context!); DeclinedBy = json['DeclinedBy']; DeclineReason = json['DeclineReason']; JobsCreated = json['JobsCreated']; JobsDone = json['JobsDone']; JobsNeedDriver = json['JobsNeedDriver']; CreatedUtc = JsonConverters.fromJson(json['CreatedUtc'],'DateTime',context!); CreatedBy = json['CreatedBy']; Events = JsonConverters.fromJson(json['Events'],'List',context!); return this; } Map toJson() => { 'RequestId': RequestId, 'Code': Code, 'CustomerName': CustomerName, 'CustomerPhone': CustomerPhone, 'CustomerEmail': CustomerEmail, 'Cargo': Cargo, 'Units': Units, 'FromLoc': FromLoc, 'ToLoc': ToLoc, 'Miles': Miles, 'WindowText': WindowText, 'IsUrgent': IsUrgent, 'Notes': Notes, 'Source': Source, 'Status': Status, 'RequiredRig': RequiredRig, 'UnitsPerTruck': UnitsPerTruck, 'RatePerLoad': RatePerLoad, 'UrgencyPct': UrgencyPct, 'CostPerLoad': CostPerLoad, 'LoadsNeeded': LoadsNeeded, 'QuoteTotal': QuoteTotal, 'QuoteVersion': QuoteVersion, 'QuotedUtc': JsonConverters.toJson(QuotedUtc,'DateTime',context!), 'QuotedBy': QuotedBy, 'AcceptTokenExpiresUtc': JsonConverters.toJson(AcceptTokenExpiresUtc,'DateTime',context!), 'AcceptedUtc': JsonConverters.toJson(AcceptedUtc,'DateTime',context!), 'AcceptedVia': AcceptedVia, 'DeclinedUtc': JsonConverters.toJson(DeclinedUtc,'DateTime',context!), 'DeclinedBy': DeclinedBy, 'DeclineReason': DeclineReason, 'JobsCreated': JobsCreated, 'JobsDone': JobsDone, 'JobsNeedDriver': JobsNeedDriver, 'CreatedUtc': JsonConverters.toJson(CreatedUtc,'DateTime',context!), 'CreatedBy': CreatedBy, 'Events': JsonConverters.toJson(Events,'List',context!) }; getTypeName() => "DispatchRequestView"; TypeContext? context = _ctx; } class DispatchRigCountView implements IConvertible { String? RigType; int? Rigs; DispatchRigCountView({this.RigType,this.Rigs}); DispatchRigCountView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { RigType = json['RigType']; Rigs = json['Rigs']; return this; } Map toJson() => { 'RigType': RigType, 'Rigs': Rigs }; getTypeName() => "DispatchRigCountView"; TypeContext? context = _ctx; } class DispatchCarrierPickView implements IConvertible { int? VendorID; String? VendorName; DispatchCarrierPickView({this.VendorID,this.VendorName}); DispatchCarrierPickView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { VendorID = json['VendorID']; VendorName = json['VendorName']; return this; } Map toJson() => { 'VendorID': VendorID, 'VendorName': VendorName }; getTypeName() => "DispatchCarrierPickView"; TypeContext? context = _ctx; } class DispatchRequestsResponse implements IConvertible { List? Requests = []; DispatchRequestView? Request; List? RigCounts = []; List? Carriers = []; String? QuoteLink; String? Delivery; ResponseStatus? ResponseStatus; DispatchRequestsResponse({this.Requests,this.Request,this.RigCounts,this.Carriers,this.QuoteLink,this.Delivery,this.ResponseStatus}); DispatchRequestsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Requests = JsonConverters.fromJson(json['Requests'],'List',context!); Request = JsonConverters.fromJson(json['Request'],'DispatchRequestView',context!); RigCounts = JsonConverters.fromJson(json['RigCounts'],'List',context!); Carriers = JsonConverters.fromJson(json['Carriers'],'List',context!); QuoteLink = json['QuoteLink']; Delivery = json['Delivery']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Requests': JsonConverters.toJson(Requests,'List',context!), 'Request': JsonConverters.toJson(Request,'DispatchRequestView',context!), 'RigCounts': JsonConverters.toJson(RigCounts,'List',context!), 'Carriers': JsonConverters.toJson(Carriers,'List',context!), 'QuoteLink': QuoteLink, 'Delivery': Delivery, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "DispatchRequestsResponse"; TypeContext? context = _ctx; } // @Route("/v1/dispatch/requests", "GET,OPTIONS") class DispatchRequestsRequest implements IReturn, IConvertible, IGet { int? Days; DispatchRequestsRequest({this.Days}); DispatchRequestsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Days = json['Days']; return this; } Map toJson() => { 'Days': Days }; createResponse() => DispatchRequestsResponse(); getResponseTypeName() => "DispatchRequestsResponse"; getTypeName() => "DispatchRequestsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'DispatchRequestEventView': TypeInfo(TypeOf.Class, create:() => DispatchRequestEventView()), 'DispatchRequestView': TypeInfo(TypeOf.Class, create:() => DispatchRequestView()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DispatchRigCountView': TypeInfo(TypeOf.Class, create:() => DispatchRigCountView()), 'DispatchCarrierPickView': TypeInfo(TypeOf.Class, create:() => DispatchCarrierPickView()), 'DispatchRequestsResponse': TypeInfo(TypeOf.Class, create:() => DispatchRequestsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DispatchRequestsRequest': TypeInfo(TypeOf.Class, create:() => DispatchRequestsRequest()), });