/* Options: Date: 2026-09-05 08:46:54 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: DispatchRateConfigSaveRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class DispatchRateConfigView implements IConvertible { double? FuelSurchargePct; double? TransportPerMile; double? TransportJobMin; double? TransportEnclosedUpliftPct; double? OdBase; double? OdPerBag; double? OdPremiumUpliftPct; String? HaulBasis; String? Facility; String? Unit; double? LoadQty; DispatchRateConfigView({this.FuelSurchargePct,this.TransportPerMile,this.TransportJobMin,this.TransportEnclosedUpliftPct,this.OdBase,this.OdPerBag,this.OdPremiumUpliftPct,this.HaulBasis,this.Facility,this.Unit,this.LoadQty}); DispatchRateConfigView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { FuelSurchargePct = JsonConverters.toDouble(json['FuelSurchargePct']); TransportPerMile = JsonConverters.toDouble(json['TransportPerMile']); TransportJobMin = JsonConverters.toDouble(json['TransportJobMin']); TransportEnclosedUpliftPct = JsonConverters.toDouble(json['TransportEnclosedUpliftPct']); OdBase = JsonConverters.toDouble(json['OdBase']); OdPerBag = JsonConverters.toDouble(json['OdPerBag']); OdPremiumUpliftPct = JsonConverters.toDouble(json['OdPremiumUpliftPct']); HaulBasis = json['HaulBasis']; Facility = json['Facility']; Unit = json['Unit']; LoadQty = JsonConverters.toDouble(json['LoadQty']); return this; } Map toJson() => { 'FuelSurchargePct': FuelSurchargePct, 'TransportPerMile': TransportPerMile, 'TransportJobMin': TransportJobMin, 'TransportEnclosedUpliftPct': TransportEnclosedUpliftPct, 'OdBase': OdBase, 'OdPerBag': OdPerBag, 'OdPremiumUpliftPct': OdPremiumUpliftPct, 'HaulBasis': HaulBasis, 'Facility': Facility, 'Unit': Unit, 'LoadQty': LoadQty }; getTypeName() => "DispatchRateConfigView"; TypeContext? context = _ctx; } class DispatchLaneRateView implements IConvertible { int? DispatchSiteID; int? DispatchSupplierID; String? SourceLabel; String? SupplierName; int? DispatchLaneRateID; double? Miles; double? RatePerTon; double? RatePerLoad; double? RatePerTonMile; double? RatePerHour; DispatchLaneRateView({this.DispatchSiteID,this.DispatchSupplierID,this.SourceLabel,this.SupplierName,this.DispatchLaneRateID,this.Miles,this.RatePerTon,this.RatePerLoad,this.RatePerTonMile,this.RatePerHour}); DispatchLaneRateView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { DispatchSiteID = json['DispatchSiteID']; DispatchSupplierID = json['DispatchSupplierID']; SourceLabel = json['SourceLabel']; SupplierName = json['SupplierName']; DispatchLaneRateID = json['DispatchLaneRateID']; Miles = JsonConverters.toDouble(json['Miles']); RatePerTon = JsonConverters.toDouble(json['RatePerTon']); RatePerLoad = JsonConverters.toDouble(json['RatePerLoad']); RatePerTonMile = JsonConverters.toDouble(json['RatePerTonMile']); RatePerHour = JsonConverters.toDouble(json['RatePerHour']); return this; } Map toJson() => { 'DispatchSiteID': DispatchSiteID, 'DispatchSupplierID': DispatchSupplierID, 'SourceLabel': SourceLabel, 'SupplierName': SupplierName, 'DispatchLaneRateID': DispatchLaneRateID, 'Miles': Miles, 'RatePerTon': RatePerTon, 'RatePerLoad': RatePerLoad, 'RatePerTonMile': RatePerTonMile, 'RatePerHour': RatePerHour }; getTypeName() => "DispatchLaneRateView"; TypeContext? context = _ctx; } class DispatchZoneRateView implements IConvertible { String? Zone; int? DispatchZoneRateID; double? Base; double? PerBag; double? PremiumUpliftPct; int? Drivers; DispatchZoneRateView({this.Zone,this.DispatchZoneRateID,this.Base,this.PerBag,this.PremiumUpliftPct,this.Drivers}); DispatchZoneRateView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Zone = json['Zone']; DispatchZoneRateID = json['DispatchZoneRateID']; Base = JsonConverters.toDouble(json['Base']); PerBag = JsonConverters.toDouble(json['PerBag']); PremiumUpliftPct = JsonConverters.toDouble(json['PremiumUpliftPct']); Drivers = json['Drivers']; return this; } Map toJson() => { 'Zone': Zone, 'DispatchZoneRateID': DispatchZoneRateID, 'Base': Base, 'PerBag': PerBag, 'PremiumUpliftPct': PremiumUpliftPct, 'Drivers': Drivers }; getTypeName() => "DispatchZoneRateView"; TypeContext? context = _ctx; } class DispatchPayPlanView implements IConvertible { int? DispatchPayPlanID; String? Name; String? Basis; double? Rate; double? Rate2; DateTime? EffectiveDate; bool? IsActive; int? Drivers; DispatchPayPlanView({this.DispatchPayPlanID,this.Name,this.Basis,this.Rate,this.Rate2,this.EffectiveDate,this.IsActive,this.Drivers}); DispatchPayPlanView.fromJson(Map json) { fromMap(json); } fromMap(Map json) { DispatchPayPlanID = json['DispatchPayPlanID']; Name = json['Name']; Basis = json['Basis']; Rate = JsonConverters.toDouble(json['Rate']); Rate2 = JsonConverters.toDouble(json['Rate2']); EffectiveDate = JsonConverters.fromJson(json['EffectiveDate'],'DateTime',context!); IsActive = json['IsActive']; Drivers = json['Drivers']; return this; } Map toJson() => { 'DispatchPayPlanID': DispatchPayPlanID, 'Name': Name, 'Basis': Basis, 'Rate': Rate, 'Rate2': Rate2, 'EffectiveDate': JsonConverters.toJson(EffectiveDate,'DateTime',context!), 'IsActive': IsActive, 'Drivers': Drivers }; getTypeName() => "DispatchPayPlanView"; TypeContext? context = _ctx; } class DispatchRatesResponse implements IConvertible { DispatchRateConfigView? Config; List? Lanes = []; List? Zones = []; List? Plans = []; int? Repriced; int? StillNoRevenue; int? StillNoPay; ResponseStatus? ResponseStatus; DispatchRatesResponse({this.Config,this.Lanes,this.Zones,this.Plans,this.Repriced,this.StillNoRevenue,this.StillNoPay,this.ResponseStatus}); DispatchRatesResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Config = JsonConverters.fromJson(json['Config'],'DispatchRateConfigView',context!); Lanes = JsonConverters.fromJson(json['Lanes'],'List',context!); Zones = JsonConverters.fromJson(json['Zones'],'List',context!); Plans = JsonConverters.fromJson(json['Plans'],'List',context!); Repriced = json['Repriced']; StillNoRevenue = json['StillNoRevenue']; StillNoPay = json['StillNoPay']; ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Config': JsonConverters.toJson(Config,'DispatchRateConfigView',context!), 'Lanes': JsonConverters.toJson(Lanes,'List',context!), 'Zones': JsonConverters.toJson(Zones,'List',context!), 'Plans': JsonConverters.toJson(Plans,'List',context!), 'Repriced': Repriced, 'StillNoRevenue': StillNoRevenue, 'StillNoPay': StillNoPay, 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "DispatchRatesResponse"; TypeContext? context = _ctx; } // @Route("/v1/dispatch/rates/config", "PUT,OPTIONS") class DispatchRateConfigSaveRequest implements IReturn, IConvertible, IPut { DispatchRateConfigView? Config; DispatchRateConfigSaveRequest({this.Config}); DispatchRateConfigSaveRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Config = JsonConverters.fromJson(json['Config'],'DispatchRateConfigView',context!); return this; } Map toJson() => { 'Config': JsonConverters.toJson(Config,'DispatchRateConfigView',context!) }; createResponse() => DispatchRatesResponse(); getResponseTypeName() => "DispatchRatesResponse"; getTypeName() => "DispatchRateConfigSaveRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'DispatchRateConfigView': TypeInfo(TypeOf.Class, create:() => DispatchRateConfigView()), 'DispatchLaneRateView': TypeInfo(TypeOf.Class, create:() => DispatchLaneRateView()), 'DispatchZoneRateView': TypeInfo(TypeOf.Class, create:() => DispatchZoneRateView()), 'DispatchPayPlanView': TypeInfo(TypeOf.Class, create:() => DispatchPayPlanView()), 'DispatchRatesResponse': TypeInfo(TypeOf.Class, create:() => DispatchRatesResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DispatchRateConfigSaveRequest': TypeInfo(TypeOf.Class, create:() => DispatchRateConfigSaveRequest()), });