/* Options: Date: 2026-09-05 07:56: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: DispatchReportRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class DashboardStatTile implements IConvertible { String? Key; String? Label; double? Value; double? PreviousValue; String? Unit; double? DeltaPct; DashboardStatTile({this.Key,this.Label,this.Value,this.PreviousValue,this.Unit,this.DeltaPct}); DashboardStatTile.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Key = json['Key']; Label = json['Label']; Value = JsonConverters.toDouble(json['Value']); PreviousValue = JsonConverters.toDouble(json['PreviousValue']); Unit = json['Unit']; DeltaPct = JsonConverters.toDouble(json['DeltaPct']); return this; } Map toJson() => { 'Key': Key, 'Label': Label, 'Value': Value, 'PreviousValue': PreviousValue, 'Unit': Unit, 'DeltaPct': DeltaPct }; getTypeName() => "DashboardStatTile"; TypeContext? context = _ctx; } class DispatchReportDayRow implements IConvertible { String? Label; int? Loads; double? Revenue; double? Pay; double? Qty; double? AvgCycleMins; DispatchReportDayRow({this.Label,this.Loads,this.Revenue,this.Pay,this.Qty,this.AvgCycleMins}); DispatchReportDayRow.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Label = json['Label']; Loads = json['Loads']; Revenue = JsonConverters.toDouble(json['Revenue']); Pay = JsonConverters.toDouble(json['Pay']); Qty = JsonConverters.toDouble(json['Qty']); AvgCycleMins = JsonConverters.toDouble(json['AvgCycleMins']); return this; } Map toJson() => { 'Label': Label, 'Loads': Loads, 'Revenue': Revenue, 'Pay': Pay, 'Qty': Qty, 'AvgCycleMins': AvgCycleMins }; getTypeName() => "DispatchReportDayRow"; TypeContext? context = _ctx; } class DispatchReportModuleRow implements IConvertible { String? Module; int? Loads; double? Qty; double? Revenue; double? Pay; DispatchReportModuleRow({this.Module,this.Loads,this.Qty,this.Revenue,this.Pay}); DispatchReportModuleRow.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Module = json['Module']; Loads = json['Loads']; Qty = JsonConverters.toDouble(json['Qty']); Revenue = JsonConverters.toDouble(json['Revenue']); Pay = JsonConverters.toDouble(json['Pay']); return this; } Map toJson() => { 'Module': Module, 'Loads': Loads, 'Qty': Qty, 'Revenue': Revenue, 'Pay': Pay }; getTypeName() => "DispatchReportModuleRow"; TypeContext? context = _ctx; } class DispatchReportLaneRow implements IConvertible { String? SupplierName; String? SourceLabel; int? Loads; double? Qty; double? Revenue; double? AvgCycleMins; DispatchReportLaneRow({this.SupplierName,this.SourceLabel,this.Loads,this.Qty,this.Revenue,this.AvgCycleMins}); DispatchReportLaneRow.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SupplierName = json['SupplierName']; SourceLabel = json['SourceLabel']; Loads = json['Loads']; Qty = JsonConverters.toDouble(json['Qty']); Revenue = JsonConverters.toDouble(json['Revenue']); AvgCycleMins = JsonConverters.toDouble(json['AvgCycleMins']); return this; } Map toJson() => { 'SupplierName': SupplierName, 'SourceLabel': SourceLabel, 'Loads': Loads, 'Qty': Qty, 'Revenue': Revenue, 'AvgCycleMins': AvgCycleMins }; getTypeName() => "DispatchReportLaneRow"; TypeContext? context = _ctx; } class DispatchReportTruckRow implements IConvertible { String? TruckLabel; String? DriverLabel; int? Loads; double? Qty; double? Revenue; double? Pay; double? AvgCycleMins; int? DaysActive; DispatchReportTruckRow({this.TruckLabel,this.DriverLabel,this.Loads,this.Qty,this.Revenue,this.Pay,this.AvgCycleMins,this.DaysActive}); DispatchReportTruckRow.fromJson(Map json) { fromMap(json); } fromMap(Map json) { TruckLabel = json['TruckLabel']; DriverLabel = json['DriverLabel']; Loads = json['Loads']; Qty = JsonConverters.toDouble(json['Qty']); Revenue = JsonConverters.toDouble(json['Revenue']); Pay = JsonConverters.toDouble(json['Pay']); AvgCycleMins = JsonConverters.toDouble(json['AvgCycleMins']); DaysActive = json['DaysActive']; return this; } Map toJson() => { 'TruckLabel': TruckLabel, 'DriverLabel': DriverLabel, 'Loads': Loads, 'Qty': Qty, 'Revenue': Revenue, 'Pay': Pay, 'AvgCycleMins': AvgCycleMins, 'DaysActive': DaysActive }; getTypeName() => "DispatchReportTruckRow"; TypeContext? context = _ctx; } class DispatchReportDriverRow implements IConvertible { String? Driver; int? DriverContactId; int? Loads; double? Qty; double? Pay; int? DaysActive; int? Unpriced; DispatchReportDriverRow({this.Driver,this.DriverContactId,this.Loads,this.Qty,this.Pay,this.DaysActive,this.Unpriced}); DispatchReportDriverRow.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Driver = json['Driver']; DriverContactId = json['DriverContactId']; Loads = json['Loads']; Qty = JsonConverters.toDouble(json['Qty']); Pay = JsonConverters.toDouble(json['Pay']); DaysActive = json['DaysActive']; Unpriced = json['Unpriced']; return this; } Map toJson() => { 'Driver': Driver, 'DriverContactId': DriverContactId, 'Loads': Loads, 'Qty': Qty, 'Pay': Pay, 'DaysActive': DaysActive, 'Unpriced': Unpriced }; getTypeName() => "DispatchReportDriverRow"; TypeContext? context = _ctx; } class DispatchReportJobRow implements IConvertible { String? JobCode; String? Customer; String? Cargo; String? Route; int? Miles; double? Revenue; double? Pay; double? MarginPct; DateTime? ClosedUtc; DispatchReportJobRow({this.JobCode,this.Customer,this.Cargo,this.Route,this.Miles,this.Revenue,this.Pay,this.MarginPct,this.ClosedUtc}); DispatchReportJobRow.fromJson(Map json) { fromMap(json); } fromMap(Map json) { JobCode = json['JobCode']; Customer = json['Customer']; Cargo = json['Cargo']; Route = json['Route']; Miles = json['Miles']; Revenue = JsonConverters.toDouble(json['Revenue']); Pay = JsonConverters.toDouble(json['Pay']); MarginPct = JsonConverters.toDouble(json['MarginPct']); ClosedUtc = JsonConverters.fromJson(json['ClosedUtc'],'DateTime',context!); return this; } Map toJson() => { 'JobCode': JobCode, 'Customer': Customer, 'Cargo': Cargo, 'Route': Route, 'Miles': Miles, 'Revenue': Revenue, 'Pay': Pay, 'MarginPct': MarginPct, 'ClosedUtc': JsonConverters.toJson(ClosedUtc,'DateTime',context!) }; getTypeName() => "DispatchReportJobRow"; TypeContext? context = _ctx; } class DispatchReportIncidentRow implements IConvertible { String? Kind; int? Opened; int? Resolved; double? AvgResolveMins; DispatchReportIncidentRow({this.Kind,this.Opened,this.Resolved,this.AvgResolveMins}); DispatchReportIncidentRow.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Kind = json['Kind']; Opened = json['Opened']; Resolved = json['Resolved']; AvgResolveMins = JsonConverters.toDouble(json['AvgResolveMins']); return this; } Map toJson() => { 'Kind': Kind, 'Opened': Opened, 'Resolved': Resolved, 'AvgResolveMins': AvgResolveMins }; getTypeName() => "DispatchReportIncidentRow"; TypeContext? context = _ctx; } class DispatchReportHoldRow implements IConvertible { String? ScopeKind; int? Holds; int? PausedMins; int? Weather; int? FromIncidents; DispatchReportHoldRow({this.ScopeKind,this.Holds,this.PausedMins,this.Weather,this.FromIncidents}); DispatchReportHoldRow.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ScopeKind = json['ScopeKind']; Holds = json['Holds']; PausedMins = json['PausedMins']; Weather = json['Weather']; FromIncidents = json['FromIncidents']; return this; } Map toJson() => { 'ScopeKind': ScopeKind, 'Holds': Holds, 'PausedMins': PausedMins, 'Weather': Weather, 'FromIncidents': FromIncidents }; getTypeName() => "DispatchReportHoldRow"; TypeContext? context = _ctx; } class DispatchReportResponse implements IConvertible { List? Stats = []; String? Unit; List? Trend = []; List? ByModule = []; List? ByLane = []; List? ByTruck = []; List? ByDriver = []; List? Jobs = []; List? Incidents = []; List? Holds = []; ResponseStatus? ResponseStatus; DispatchReportResponse({this.Stats,this.Unit,this.Trend,this.ByModule,this.ByLane,this.ByTruck,this.ByDriver,this.Jobs,this.Incidents,this.Holds,this.ResponseStatus}); DispatchReportResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Stats = JsonConverters.fromJson(json['Stats'],'List',context!); Unit = json['Unit']; Trend = JsonConverters.fromJson(json['Trend'],'List',context!); ByModule = JsonConverters.fromJson(json['ByModule'],'List',context!); ByLane = JsonConverters.fromJson(json['ByLane'],'List',context!); ByTruck = JsonConverters.fromJson(json['ByTruck'],'List',context!); ByDriver = JsonConverters.fromJson(json['ByDriver'],'List',context!); Jobs = JsonConverters.fromJson(json['Jobs'],'List',context!); Incidents = JsonConverters.fromJson(json['Incidents'],'List',context!); Holds = JsonConverters.fromJson(json['Holds'],'List',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Stats': JsonConverters.toJson(Stats,'List',context!), 'Unit': Unit, 'Trend': JsonConverters.toJson(Trend,'List',context!), 'ByModule': JsonConverters.toJson(ByModule,'List',context!), 'ByLane': JsonConverters.toJson(ByLane,'List',context!), 'ByTruck': JsonConverters.toJson(ByTruck,'List',context!), 'ByDriver': JsonConverters.toJson(ByDriver,'List',context!), 'Jobs': JsonConverters.toJson(Jobs,'List',context!), 'Incidents': JsonConverters.toJson(Incidents,'List',context!), 'Holds': JsonConverters.toJson(Holds,'List',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "DispatchReportResponse"; TypeContext? context = _ctx; } // @Route("/v1/dashboard/dispatch", "POST,OPTIONS") class DispatchReportRequest implements IReturn, IConvertible, IPost { DateTime? FromDate; DateTime? ToDate; List? LocationIds = []; DispatchReportRequest({this.FromDate,this.ToDate,this.LocationIds}); DispatchReportRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { FromDate = JsonConverters.fromJson(json['FromDate'],'DateTime',context!); ToDate = JsonConverters.fromJson(json['ToDate'],'DateTime',context!); LocationIds = JsonConverters.fromJson(json['LocationIds'],'List',context!); return this; } Map toJson() => { 'FromDate': JsonConverters.toJson(FromDate,'DateTime',context!), 'ToDate': JsonConverters.toJson(ToDate,'DateTime',context!), 'LocationIds': JsonConverters.toJson(LocationIds,'List',context!) }; createResponse() => DispatchReportResponse(); getResponseTypeName() => "DispatchReportResponse"; getTypeName() => "DispatchReportRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'DashboardStatTile': TypeInfo(TypeOf.Class, create:() => DashboardStatTile()), 'DispatchReportDayRow': TypeInfo(TypeOf.Class, create:() => DispatchReportDayRow()), 'DispatchReportModuleRow': TypeInfo(TypeOf.Class, create:() => DispatchReportModuleRow()), 'DispatchReportLaneRow': TypeInfo(TypeOf.Class, create:() => DispatchReportLaneRow()), 'DispatchReportTruckRow': TypeInfo(TypeOf.Class, create:() => DispatchReportTruckRow()), 'DispatchReportDriverRow': TypeInfo(TypeOf.Class, create:() => DispatchReportDriverRow()), 'DispatchReportJobRow': TypeInfo(TypeOf.Class, create:() => DispatchReportJobRow()), 'DispatchReportIncidentRow': TypeInfo(TypeOf.Class, create:() => DispatchReportIncidentRow()), 'DispatchReportHoldRow': TypeInfo(TypeOf.Class, create:() => DispatchReportHoldRow()), 'DispatchReportResponse': TypeInfo(TypeOf.Class, create:() => DispatchReportResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DispatchReportRequest': TypeInfo(TypeOf.Class, create:() => DispatchReportRequest()), });