/* Options: Date: 2026-09-05 07:07:49 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: DriverPingAdvanceRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class DriverStampView implements IConvertible { String? Stage; DateTime? AtUtc; String? Note; DriverStampView({this.Stage,this.AtUtc,this.Note}); DriverStampView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Stage = json['Stage']; AtUtc = JsonConverters.fromJson(json['AtUtc'],'DateTime',context!); Note = json['Note']; return this; } Map toJson() => { 'Stage': Stage, 'AtUtc': JsonConverters.toJson(AtUtc,'DateTime',context!), 'Note': Note }; getTypeName() => "DriverStampView"; TypeContext? context = _ctx; } class DriverTruckView implements IConvertible { String? Code; String? Stage; DateTime? StageSinceUtc; int? LoadsToday; double? NetToday; double? EstLoad; String? Slot; String? SiteName; String? SupplierName; String? NextSiteName; String? Facility; String? FacilityShort; String? Unit; int? QueuePosition; String? HoldCode; String? HoldReason; DateTime? HoldEndUtc; int? OpenLoadId; String? OpenLoadCode; int? OpenLoadPhotos; List? Stamps = []; DriverTruckView({this.Code,this.Stage,this.StageSinceUtc,this.LoadsToday,this.NetToday,this.EstLoad,this.Slot,this.SiteName,this.SupplierName,this.NextSiteName,this.Facility,this.FacilityShort,this.Unit,this.QueuePosition,this.HoldCode,this.HoldReason,this.HoldEndUtc,this.OpenLoadId,this.OpenLoadCode,this.OpenLoadPhotos,this.Stamps}); DriverTruckView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Code = json['Code']; Stage = json['Stage']; StageSinceUtc = JsonConverters.fromJson(json['StageSinceUtc'],'DateTime',context!); LoadsToday = json['LoadsToday']; NetToday = JsonConverters.toDouble(json['NetToday']); EstLoad = JsonConverters.toDouble(json['EstLoad']); Slot = json['Slot']; SiteName = json['SiteName']; SupplierName = json['SupplierName']; NextSiteName = json['NextSiteName']; Facility = json['Facility']; FacilityShort = json['FacilityShort']; Unit = json['Unit']; QueuePosition = json['QueuePosition']; HoldCode = json['HoldCode']; HoldReason = json['HoldReason']; HoldEndUtc = JsonConverters.fromJson(json['HoldEndUtc'],'DateTime',context!); OpenLoadId = json['OpenLoadId']; OpenLoadCode = json['OpenLoadCode']; OpenLoadPhotos = json['OpenLoadPhotos']; Stamps = JsonConverters.fromJson(json['Stamps'],'List',context!); return this; } Map toJson() => { 'Code': Code, 'Stage': Stage, 'StageSinceUtc': JsonConverters.toJson(StageSinceUtc,'DateTime',context!), 'LoadsToday': LoadsToday, 'NetToday': NetToday, 'EstLoad': EstLoad, 'Slot': Slot, 'SiteName': SiteName, 'SupplierName': SupplierName, 'NextSiteName': NextSiteName, 'Facility': Facility, 'FacilityShort': FacilityShort, 'Unit': Unit, 'QueuePosition': QueuePosition, 'HoldCode': HoldCode, 'HoldReason': HoldReason, 'HoldEndUtc': JsonConverters.toJson(HoldEndUtc,'DateTime',context!), 'OpenLoadId': OpenLoadId, 'OpenLoadCode': OpenLoadCode, 'OpenLoadPhotos': OpenLoadPhotos, 'Stamps': JsonConverters.toJson(Stamps,'List',context!) }; getTypeName() => "DriverTruckView"; TypeContext? context = _ctx; } class DriverRigView implements IConvertible { String? Code; String? Name; String? RigType; bool? IsFree; String? HoldCode; String? HoldReason; DateTime? HoldEndUtc; DriverRigView({this.Code,this.Name,this.RigType,this.IsFree,this.HoldCode,this.HoldReason,this.HoldEndUtc}); DriverRigView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Code = json['Code']; Name = json['Name']; RigType = json['RigType']; IsFree = json['IsFree']; HoldCode = json['HoldCode']; HoldReason = json['HoldReason']; HoldEndUtc = JsonConverters.fromJson(json['HoldEndUtc'],'DateTime',context!); return this; } Map toJson() => { 'Code': Code, 'Name': Name, 'RigType': RigType, 'IsFree': IsFree, 'HoldCode': HoldCode, 'HoldReason': HoldReason, 'HoldEndUtc': JsonConverters.toJson(HoldEndUtc,'DateTime',context!) }; getTypeName() => "DriverRigView"; TypeContext? context = _ctx; } class DriverJobView implements IConvertible { String? Kind; String? Code; String? Cargo; String? Customer; String? CustomerPhone; String? HoldContact; String? HoldPhone; String? FromLoc; String? ToLoc; int? Miles; String? WindowText; String? Stage; double? Rate; String? RequiredRig; String? EtaText; DateTime? OfferExpiresUtc; int? RequestId; int? LoadId; String? LoadCode; double? LoadPay; int? Photos; List? Stamps = []; DriverJobView({this.Kind,this.Code,this.Cargo,this.Customer,this.CustomerPhone,this.HoldContact,this.HoldPhone,this.FromLoc,this.ToLoc,this.Miles,this.WindowText,this.Stage,this.Rate,this.RequiredRig,this.EtaText,this.OfferExpiresUtc,this.RequestId,this.LoadId,this.LoadCode,this.LoadPay,this.Photos,this.Stamps}); DriverJobView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Kind = json['Kind']; Code = json['Code']; Cargo = json['Cargo']; Customer = json['Customer']; CustomerPhone = json['CustomerPhone']; HoldContact = json['HoldContact']; HoldPhone = json['HoldPhone']; FromLoc = json['FromLoc']; ToLoc = json['ToLoc']; Miles = json['Miles']; WindowText = json['WindowText']; Stage = json['Stage']; Rate = JsonConverters.toDouble(json['Rate']); RequiredRig = json['RequiredRig']; EtaText = json['EtaText']; OfferExpiresUtc = JsonConverters.fromJson(json['OfferExpiresUtc'],'DateTime',context!); RequestId = json['RequestId']; LoadId = json['LoadId']; LoadCode = json['LoadCode']; LoadPay = JsonConverters.toDouble(json['LoadPay']); Photos = json['Photos']; Stamps = JsonConverters.fromJson(json['Stamps'],'List',context!); return this; } Map toJson() => { 'Kind': Kind, 'Code': Code, 'Cargo': Cargo, 'Customer': Customer, 'CustomerPhone': CustomerPhone, 'HoldContact': HoldContact, 'HoldPhone': HoldPhone, 'FromLoc': FromLoc, 'ToLoc': ToLoc, 'Miles': Miles, 'WindowText': WindowText, 'Stage': Stage, 'Rate': Rate, 'RequiredRig': RequiredRig, 'EtaText': EtaText, 'OfferExpiresUtc': JsonConverters.toJson(OfferExpiresUtc,'DateTime',context!), 'RequestId': RequestId, 'LoadId': LoadId, 'LoadCode': LoadCode, 'LoadPay': LoadPay, 'Photos': Photos, 'Stamps': JsonConverters.toJson(Stamps,'List',context!) }; getTypeName() => "DriverJobView"; TypeContext? context = _ctx; } class DriverOdView implements IConvertible { String? Code; String? Name; String? Zone; String? Status; String? Tier; String? Capabilities; String? PingCode; String? PingAddress; String? PingZone; int? PingBags; String? PingNeeds; String? PingNote; DateTime? PingExpiresUtc; String? RunCode; String? RunAddress; String? RunZone; int? RunBags; String? RunStage; String? RunNeeds; String? RunNote; String? RunEta; double? OdBase; double? OdPerBag; String? HoldCode; String? HoldReason; DateTime? HoldEndUtc; DriverOdView({this.Code,this.Name,this.Zone,this.Status,this.Tier,this.Capabilities,this.PingCode,this.PingAddress,this.PingZone,this.PingBags,this.PingNeeds,this.PingNote,this.PingExpiresUtc,this.RunCode,this.RunAddress,this.RunZone,this.RunBags,this.RunStage,this.RunNeeds,this.RunNote,this.RunEta,this.OdBase,this.OdPerBag,this.HoldCode,this.HoldReason,this.HoldEndUtc}); DriverOdView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Code = json['Code']; Name = json['Name']; Zone = json['Zone']; Status = json['Status']; Tier = json['Tier']; Capabilities = json['Capabilities']; PingCode = json['PingCode']; PingAddress = json['PingAddress']; PingZone = json['PingZone']; PingBags = json['PingBags']; PingNeeds = json['PingNeeds']; PingNote = json['PingNote']; PingExpiresUtc = JsonConverters.fromJson(json['PingExpiresUtc'],'DateTime',context!); RunCode = json['RunCode']; RunAddress = json['RunAddress']; RunZone = json['RunZone']; RunBags = json['RunBags']; RunStage = json['RunStage']; RunNeeds = json['RunNeeds']; RunNote = json['RunNote']; RunEta = json['RunEta']; OdBase = JsonConverters.toDouble(json['OdBase']); OdPerBag = JsonConverters.toDouble(json['OdPerBag']); HoldCode = json['HoldCode']; HoldReason = json['HoldReason']; HoldEndUtc = JsonConverters.fromJson(json['HoldEndUtc'],'DateTime',context!); return this; } Map toJson() => { 'Code': Code, 'Name': Name, 'Zone': Zone, 'Status': Status, 'Tier': Tier, 'Capabilities': Capabilities, 'PingCode': PingCode, 'PingAddress': PingAddress, 'PingZone': PingZone, 'PingBags': PingBags, 'PingNeeds': PingNeeds, 'PingNote': PingNote, 'PingExpiresUtc': JsonConverters.toJson(PingExpiresUtc,'DateTime',context!), 'RunCode': RunCode, 'RunAddress': RunAddress, 'RunZone': RunZone, 'RunBags': RunBags, 'RunStage': RunStage, 'RunNeeds': RunNeeds, 'RunNote': RunNote, 'RunEta': RunEta, 'OdBase': OdBase, 'OdPerBag': OdPerBag, 'HoldCode': HoldCode, 'HoldReason': HoldReason, 'HoldEndUtc': JsonConverters.toJson(HoldEndUtc,'DateTime',context!) }; getTypeName() => "DriverOdView"; TypeContext? context = _ctx; } class DispatchIncidentMessageView implements IConvertible { int? MessageId; String? Who; String? Role; String? Msg; DateTime? AtUtc; DispatchIncidentMessageView({this.MessageId,this.Who,this.Role,this.Msg,this.AtUtc}); DispatchIncidentMessageView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { MessageId = json['MessageId']; Who = json['Who']; Role = json['Role']; Msg = json['Msg']; AtUtc = JsonConverters.fromJson(json['AtUtc'],'DateTime',context!); return this; } Map toJson() => { 'MessageId': MessageId, 'Who': Who, 'Role': Role, 'Msg': Msg, 'AtUtc': JsonConverters.toJson(AtUtc,'DateTime',context!) }; getTypeName() => "DispatchIncidentMessageView"; TypeContext? context = _ctx; } class DriverIncidentView implements IConvertible { int? IncidentId; String? Code; String? Kind; String? KindDetail; String? Status; String? LoadCode; String? TruckCode; String? LocationText; String? DriverPref; String? TruckRecovery; String? LoadRecovery; String? TransloadTruckCode; String? HoldCode; DateTime? OpenedUtc; DateTime? ResolvedUtc; List? Messages = []; DriverIncidentView({this.IncidentId,this.Code,this.Kind,this.KindDetail,this.Status,this.LoadCode,this.TruckCode,this.LocationText,this.DriverPref,this.TruckRecovery,this.LoadRecovery,this.TransloadTruckCode,this.HoldCode,this.OpenedUtc,this.ResolvedUtc,this.Messages}); DriverIncidentView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { IncidentId = json['IncidentId']; Code = json['Code']; Kind = json['Kind']; KindDetail = json['KindDetail']; Status = json['Status']; LoadCode = json['LoadCode']; TruckCode = json['TruckCode']; LocationText = json['LocationText']; DriverPref = json['DriverPref']; TruckRecovery = json['TruckRecovery']; LoadRecovery = json['LoadRecovery']; TransloadTruckCode = json['TransloadTruckCode']; HoldCode = json['HoldCode']; OpenedUtc = JsonConverters.fromJson(json['OpenedUtc'],'DateTime',context!); ResolvedUtc = JsonConverters.fromJson(json['ResolvedUtc'],'DateTime',context!); Messages = JsonConverters.fromJson(json['Messages'],'List',context!); return this; } Map toJson() => { 'IncidentId': IncidentId, 'Code': Code, 'Kind': Kind, 'KindDetail': KindDetail, 'Status': Status, 'LoadCode': LoadCode, 'TruckCode': TruckCode, 'LocationText': LocationText, 'DriverPref': DriverPref, 'TruckRecovery': TruckRecovery, 'LoadRecovery': LoadRecovery, 'TransloadTruckCode': TransloadTruckCode, 'HoldCode': HoldCode, 'OpenedUtc': JsonConverters.toJson(OpenedUtc,'DateTime',context!), 'ResolvedUtc': JsonConverters.toJson(ResolvedUtc,'DateTime',context!), 'Messages': JsonConverters.toJson(Messages,'List',context!) }; getTypeName() => "DriverIncidentView"; TypeContext? context = _ctx; } class DriverPayLineView implements IConvertible { String? Code; String? Module; String? SourceLabel; String? DestinationLabel; String? QtyText; double? Pay; String? PayPlanLabel; String? Status; DateTime? ClosedUtc; DateTime? OpenedUtc; String? TicketCode; DriverPayLineView({this.Code,this.Module,this.SourceLabel,this.DestinationLabel,this.QtyText,this.Pay,this.PayPlanLabel,this.Status,this.ClosedUtc,this.OpenedUtc,this.TicketCode}); DriverPayLineView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Code = json['Code']; Module = json['Module']; SourceLabel = json['SourceLabel']; DestinationLabel = json['DestinationLabel']; QtyText = json['QtyText']; Pay = JsonConverters.toDouble(json['Pay']); PayPlanLabel = json['PayPlanLabel']; Status = json['Status']; ClosedUtc = JsonConverters.fromJson(json['ClosedUtc'],'DateTime',context!); OpenedUtc = JsonConverters.fromJson(json['OpenedUtc'],'DateTime',context!); TicketCode = json['TicketCode']; return this; } Map toJson() => { 'Code': Code, 'Module': Module, 'SourceLabel': SourceLabel, 'DestinationLabel': DestinationLabel, 'QtyText': QtyText, 'Pay': Pay, 'PayPlanLabel': PayPlanLabel, 'Status': Status, 'ClosedUtc': JsonConverters.toJson(ClosedUtc,'DateTime',context!), 'OpenedUtc': JsonConverters.toJson(OpenedUtc,'DateTime',context!), 'TicketCode': TicketCode }; getTypeName() => "DriverPayLineView"; TypeContext? context = _ctx; } class DriverMeResponse implements IConvertible { int? ContactId; String? Name; String? Phone; String? PayPlanName; String? PayPlanBasis; double? PayPlanRate; DriverTruckView? Truck; DriverRigView? Rig; List? Jobs = []; DriverOdView? Od; List? Incidents = []; List? Pay = []; DateTime? ServerUtc; String? Message; ResponseStatus? ResponseStatus; DriverMeResponse({this.ContactId,this.Name,this.Phone,this.PayPlanName,this.PayPlanBasis,this.PayPlanRate,this.Truck,this.Rig,this.Jobs,this.Od,this.Incidents,this.Pay,this.ServerUtc,this.Message,this.ResponseStatus}); DriverMeResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ContactId = json['ContactId']; Name = json['Name']; Phone = json['Phone']; PayPlanName = json['PayPlanName']; PayPlanBasis = json['PayPlanBasis']; PayPlanRate = JsonConverters.toDouble(json['PayPlanRate']); Truck = JsonConverters.fromJson(json['Truck'],'DriverTruckView',context!); Rig = JsonConverters.fromJson(json['Rig'],'DriverRigView',context!); Jobs = JsonConverters.fromJson(json['Jobs'],'List',context!); Od = JsonConverters.fromJson(json['Od'],'DriverOdView',context!); Incidents = JsonConverters.fromJson(json['Incidents'],'List',context!); Pay = JsonConverters.fromJson(json['Pay'],'List',context!); ServerUtc = JsonConverters.fromJson(json['ServerUtc'],'DateTime',context!); Message = json['Message']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'ContactId': ContactId, 'Name': Name, 'Phone': Phone, 'PayPlanName': PayPlanName, 'PayPlanBasis': PayPlanBasis, 'PayPlanRate': PayPlanRate, 'Truck': JsonConverters.toJson(Truck,'DriverTruckView',context!), 'Rig': JsonConverters.toJson(Rig,'DriverRigView',context!), 'Jobs': JsonConverters.toJson(Jobs,'List',context!), 'Od': JsonConverters.toJson(Od,'DriverOdView',context!), 'Incidents': JsonConverters.toJson(Incidents,'List',context!), 'Pay': JsonConverters.toJson(Pay,'List',context!), 'ServerUtc': JsonConverters.toJson(ServerUtc,'DateTime',context!), 'Message': Message, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "DriverMeResponse"; TypeContext? context = _ctx; } // @Route("/v1/worker/dispatch/ping/{Code}/advance", "POST,OPTIONS") class DriverPingAdvanceRequest implements IReturn, IConvertible, IPost { String? Code; DriverPingAdvanceRequest({this.Code}); DriverPingAdvanceRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Code = json['Code']; return this; } Map toJson() => { 'Code': Code }; createResponse() => DriverMeResponse(); getResponseTypeName() => "DriverMeResponse"; getTypeName() => "DriverPingAdvanceRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'DriverStampView': TypeInfo(TypeOf.Class, create:() => DriverStampView()), 'DriverTruckView': TypeInfo(TypeOf.Class, create:() => DriverTruckView()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DriverRigView': TypeInfo(TypeOf.Class, create:() => DriverRigView()), 'DriverJobView': TypeInfo(TypeOf.Class, create:() => DriverJobView()), 'DriverOdView': TypeInfo(TypeOf.Class, create:() => DriverOdView()), 'DispatchIncidentMessageView': TypeInfo(TypeOf.Class, create:() => DispatchIncidentMessageView()), 'DriverIncidentView': TypeInfo(TypeOf.Class, create:() => DriverIncidentView()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DriverPayLineView': TypeInfo(TypeOf.Class, create:() => DriverPayLineView()), 'DriverMeResponse': TypeInfo(TypeOf.Class, create:() => DriverMeResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DriverPingAdvanceRequest': TypeInfo(TypeOf.Class, create:() => DriverPingAdvanceRequest()), });