/* Options: Date: 2026-09-05 08:25:46 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: DispatchLoadsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class DispatchLoadStageView implements IConvertible { String? Stage; DateTime? AtUtc; String? Note; DispatchLoadStageView({this.Stage,this.AtUtc,this.Note}); DispatchLoadStageView.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() => "DispatchLoadStageView"; TypeContext? context = _ctx; } class DispatchLoadView implements IConvertible { int? LoadId; String? Code; String? Module; String? TruckLabel; String? DriverLabel; String? CarrierLabel; String? SourceLabel; String? DestinationLabel; double? Qty; String? Unit; String? QtyText; String? TicketCode; double? RateApplied; String? RateBasis; double? Revenue; String? PayPlanLabel; double? Pay; String? Status; DateTime? OpenedUtc; DateTime? ClosedUtc; int? Photos; List? Stages = []; DispatchLoadView({this.LoadId,this.Code,this.Module,this.TruckLabel,this.DriverLabel,this.CarrierLabel,this.SourceLabel,this.DestinationLabel,this.Qty,this.Unit,this.QtyText,this.TicketCode,this.RateApplied,this.RateBasis,this.Revenue,this.PayPlanLabel,this.Pay,this.Status,this.OpenedUtc,this.ClosedUtc,this.Photos,this.Stages}); DispatchLoadView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { LoadId = json['LoadId']; Code = json['Code']; Module = json['Module']; TruckLabel = json['TruckLabel']; DriverLabel = json['DriverLabel']; CarrierLabel = json['CarrierLabel']; SourceLabel = json['SourceLabel']; DestinationLabel = json['DestinationLabel']; Qty = JsonConverters.toDouble(json['Qty']); Unit = json['Unit']; QtyText = json['QtyText']; TicketCode = json['TicketCode']; RateApplied = JsonConverters.toDouble(json['RateApplied']); RateBasis = json['RateBasis']; Revenue = JsonConverters.toDouble(json['Revenue']); PayPlanLabel = json['PayPlanLabel']; Pay = JsonConverters.toDouble(json['Pay']); Status = json['Status']; OpenedUtc = JsonConverters.fromJson(json['OpenedUtc'],'DateTime',context!); ClosedUtc = JsonConverters.fromJson(json['ClosedUtc'],'DateTime',context!); Photos = json['Photos']; Stages = JsonConverters.fromJson(json['Stages'],'List',context!); return this; } Map toJson() => { 'LoadId': LoadId, 'Code': Code, 'Module': Module, 'TruckLabel': TruckLabel, 'DriverLabel': DriverLabel, 'CarrierLabel': CarrierLabel, 'SourceLabel': SourceLabel, 'DestinationLabel': DestinationLabel, 'Qty': Qty, 'Unit': Unit, 'QtyText': QtyText, 'TicketCode': TicketCode, 'RateApplied': RateApplied, 'RateBasis': RateBasis, 'Revenue': Revenue, 'PayPlanLabel': PayPlanLabel, 'Pay': Pay, 'Status': Status, 'OpenedUtc': JsonConverters.toJson(OpenedUtc,'DateTime',context!), 'ClosedUtc': JsonConverters.toJson(ClosedUtc,'DateTime',context!), 'Photos': Photos, 'Stages': JsonConverters.toJson(Stages,'List',context!) }; getTypeName() => "DispatchLoadView"; TypeContext? context = _ctx; } class DispatchLoadsResponse implements IConvertible { List? Loads = []; int? Hours; ResponseStatus? ResponseStatus; DispatchLoadsResponse({this.Loads,this.Hours,this.ResponseStatus}); DispatchLoadsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Loads = JsonConverters.fromJson(json['Loads'],'List',context!); Hours = json['Hours']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Loads': JsonConverters.toJson(Loads,'List',context!), 'Hours': Hours, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "DispatchLoadsResponse"; TypeContext? context = _ctx; } // @Route("/v1/dispatch/loads", "GET,OPTIONS") class DispatchLoadsRequest implements IReturn, IConvertible, IGet { int? Hours; String? Module; DispatchLoadsRequest({this.Hours,this.Module}); DispatchLoadsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Hours = json['Hours']; Module = json['Module']; return this; } Map toJson() => { 'Hours': Hours, 'Module': Module }; createResponse() => DispatchLoadsResponse(); getResponseTypeName() => "DispatchLoadsResponse"; getTypeName() => "DispatchLoadsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'DispatchLoadStageView': TypeInfo(TypeOf.Class, create:() => DispatchLoadStageView()), 'DispatchLoadView': TypeInfo(TypeOf.Class, create:() => DispatchLoadView()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DispatchLoadsResponse': TypeInfo(TypeOf.Class, create:() => DispatchLoadsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DispatchLoadsRequest': TypeInfo(TypeOf.Class, create:() => DispatchLoadsRequest()), });