/* Options: Date: 2025-05-05 18:33:21 Version: 8.61 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://prod-api-agency-orch-mb-dhc.rapp-customers.co.uk //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetBackOrderVehicleMatchRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class GetBackOrderMatchRequest implements IConvertible { String? Guid; GetBackOrderMatchRequest({this.Guid}); GetBackOrderMatchRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Guid = json['Guid']; return this; } Map toJson() => { 'Guid': Guid }; getTypeName() => "GetBackOrderMatchRequest"; TypeContext? context = _ctx; } class Vehicle implements IConvertible { String? Vin; Vehicle({this.Vin}); Vehicle.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Vin = json['Vin']; return this; } Map toJson() => { 'Vin': Vin }; getTypeName() => "Vehicle"; TypeContext? context = _ctx; } class VehicleCriteriaMatch implements IConvertible { bool? Fuel; bool? Transmission; bool? Colour; bool? Upholstery; bool? Line; bool? Engine; bool? BodyStyle; bool? Packages; VehicleCriteriaMatch({this.Fuel,this.Transmission,this.Colour,this.Upholstery,this.Line,this.Engine,this.BodyStyle,this.Packages}); VehicleCriteriaMatch.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Fuel = json['Fuel']; Transmission = json['Transmission']; Colour = json['Colour']; Upholstery = json['Upholstery']; Line = json['Line']; Engine = json['Engine']; BodyStyle = json['BodyStyle']; Packages = json['Packages']; return this; } Map toJson() => { 'Fuel': Fuel, 'Transmission': Transmission, 'Colour': Colour, 'Upholstery': Upholstery, 'Line': Line, 'Engine': Engine, 'BodyStyle': BodyStyle, 'Packages': Packages }; getTypeName() => "VehicleCriteriaMatch"; TypeContext? context = _ctx; } enum OfferPriceProductType { LIST_PRICE, NUMBER_PLATE_FEE, DELIVERY_CHARGE, FUEL_CHARGE, MANUFACTURER_OFFER, PERSONALISED_MONEYOFFER, PERSONALISED_NONMONEYOFFER, PERSONALISED_NONMONEYOFFER_NEG, SERVICE, SERVICE_NEG, GOVERNMENT_GRANT, OUTRIGHT_PURCHASE_DISCOUNT, VIP_OFFER, WALLBOX_OFFER, WALLBOX_OFFER_NEG, ROAD_FUND_LICENCE, FIRST_REGISTRATION_FEE, NOT_FOUND, ACCESSORY_OFFER, ACCESSORY_OFFER_NEG, MOTABILITY_DISCOUNT, } class Price implements IConvertible { String? Id; String? Description; double? Net; double? VAT; double? Gross; OfferPriceProductType? Product; Price({this.Id,this.Description,this.Net,this.VAT,this.Gross,this.Product}); Price.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Description = json['Description']; Net = JsonConverters.toDouble(json['Net']); VAT = JsonConverters.toDouble(json['VAT']); Gross = JsonConverters.toDouble(json['Gross']); Product = JsonConverters.fromJson(json['Product'],'OfferPriceProductType',context!); return this; } Map toJson() => { 'Id': Id, 'Description': Description, 'Net': Net, 'VAT': VAT, 'Gross': Gross, 'Product': JsonConverters.toJson(Product,'OfferPriceProductType',context!) }; getTypeName() => "Price"; TypeContext? context = _ctx; } class Retailer implements IConvertible { String? Gssn; String? Description; bool? CampaignExcluded; Retailer({this.Gssn,this.Description,this.CampaignExcluded}); Retailer.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Gssn = json['Gssn']; Description = json['Description']; CampaignExcluded = json['CampaignExcluded']; return this; } Map toJson() => { 'Gssn': Gssn, 'Description': Description, 'CampaignExcluded': CampaignExcluded }; getTypeName() => "Retailer"; TypeContext? context = _ctx; } class VehicleBaseDetail extends Vehicle implements ICommissionNumber, IConvertible { String? Description; String? CommissionNumber; String? PortArrivalDate; String? OfferExpiryDate; String? Fuel; String? Transmission; String? TransmissionType; String? Colour; String? ColourDescription; String? ImageUrl; bool? Specialist; VehicleCriteriaMatch? VehicleCriteriaMatch; String? ColourGroup; String? Model; String? BodyStyle; String? Brand; String? Engine; String? EngineDescription; String? Line; String? Upholstery; String? UpholsteryDescription; List? Packages = []; double? P11D; List? Prices = []; String? VehicleClass; String? ProductRange; String? VehicleType; double? Emission; String? Baumuster; bool? IsSellable; String? Bm7NST; double? ElectricRange; double? ElectricConsumption; bool? IsDisplayStock; int? DisplayRetailer_Id; String? DisplayRetailer; String? DisplayRetailerGssnId; Retailer? Retailer; int? Age; String? ModelYearCode; String? HalfModelYearCode; String? FullModelYearCode; String? ProductionDate; String? ChassisNumber; bool? EligibleForIntegratedServiceCare; VehicleBaseDetail({this.Description,this.CommissionNumber,this.PortArrivalDate,this.OfferExpiryDate,this.Fuel,this.Transmission,this.TransmissionType,this.Colour,this.ColourDescription,this.ImageUrl,this.Specialist,this.VehicleCriteriaMatch,this.ColourGroup,this.Model,this.BodyStyle,this.Brand,this.Engine,this.EngineDescription,this.Line,this.Upholstery,this.UpholsteryDescription,this.Packages,this.P11D,this.Prices,this.VehicleClass,this.ProductRange,this.VehicleType,this.Emission,this.Baumuster,this.IsSellable,this.Bm7NST,this.ElectricRange,this.ElectricConsumption,this.IsDisplayStock,this.DisplayRetailer_Id,this.DisplayRetailer,this.DisplayRetailerGssnId,this.Retailer,this.Age,this.ModelYearCode,this.HalfModelYearCode,this.FullModelYearCode,this.ProductionDate,this.ChassisNumber,this.EligibleForIntegratedServiceCare}); VehicleBaseDetail.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Description = json['Description']; CommissionNumber = json['CommissionNumber']; PortArrivalDate = json['PortArrivalDate']; OfferExpiryDate = json['OfferExpiryDate']; Fuel = json['Fuel']; Transmission = json['Transmission']; TransmissionType = json['TransmissionType']; Colour = json['Colour']; ColourDescription = json['ColourDescription']; ImageUrl = json['ImageUrl']; Specialist = json['Specialist']; VehicleCriteriaMatch = JsonConverters.fromJson(json['VehicleCriteriaMatch'],'VehicleCriteriaMatch',context!); ColourGroup = json['ColourGroup']; Model = json['Model']; BodyStyle = json['BodyStyle']; Brand = json['Brand']; Engine = json['Engine']; EngineDescription = json['EngineDescription']; Line = json['Line']; Upholstery = json['Upholstery']; UpholsteryDescription = json['UpholsteryDescription']; Packages = JsonConverters.fromJson(json['Packages'],'List',context!); P11D = JsonConverters.toDouble(json['P11D']); Prices = JsonConverters.fromJson(json['Prices'],'List',context!); VehicleClass = json['VehicleClass']; ProductRange = json['ProductRange']; VehicleType = json['VehicleType']; Emission = JsonConverters.toDouble(json['Emission']); Baumuster = json['Baumuster']; IsSellable = json['IsSellable']; Bm7NST = json['Bm7NST']; ElectricRange = JsonConverters.toDouble(json['ElectricRange']); ElectricConsumption = JsonConverters.toDouble(json['ElectricConsumption']); IsDisplayStock = json['IsDisplayStock']; DisplayRetailer_Id = json['DisplayRetailer_Id']; DisplayRetailer = json['DisplayRetailer']; DisplayRetailerGssnId = json['DisplayRetailerGssnId']; Retailer = JsonConverters.fromJson(json['Retailer'],'Retailer',context!); Age = json['Age']; ModelYearCode = json['ModelYearCode']; HalfModelYearCode = json['HalfModelYearCode']; FullModelYearCode = json['FullModelYearCode']; ProductionDate = json['ProductionDate']; ChassisNumber = json['ChassisNumber']; EligibleForIntegratedServiceCare = json['EligibleForIntegratedServiceCare']; return this; } Map toJson() => super.toJson()..addAll({ 'Description': Description, 'CommissionNumber': CommissionNumber, 'PortArrivalDate': PortArrivalDate, 'OfferExpiryDate': OfferExpiryDate, 'Fuel': Fuel, 'Transmission': Transmission, 'TransmissionType': TransmissionType, 'Colour': Colour, 'ColourDescription': ColourDescription, 'ImageUrl': ImageUrl, 'Specialist': Specialist, 'VehicleCriteriaMatch': JsonConverters.toJson(VehicleCriteriaMatch,'VehicleCriteriaMatch',context!), 'ColourGroup': ColourGroup, 'Model': Model, 'BodyStyle': BodyStyle, 'Brand': Brand, 'Engine': Engine, 'EngineDescription': EngineDescription, 'Line': Line, 'Upholstery': Upholstery, 'UpholsteryDescription': UpholsteryDescription, 'Packages': JsonConverters.toJson(Packages,'List',context!), 'P11D': P11D, 'Prices': JsonConverters.toJson(Prices,'List',context!), 'VehicleClass': VehicleClass, 'ProductRange': ProductRange, 'VehicleType': VehicleType, 'Emission': Emission, 'Baumuster': Baumuster, 'IsSellable': IsSellable, 'Bm7NST': Bm7NST, 'ElectricRange': ElectricRange, 'ElectricConsumption': ElectricConsumption, 'IsDisplayStock': IsDisplayStock, 'DisplayRetailer_Id': DisplayRetailer_Id, 'DisplayRetailer': DisplayRetailer, 'DisplayRetailerGssnId': DisplayRetailerGssnId, 'Retailer': JsonConverters.toJson(Retailer,'Retailer',context!), 'Age': Age, 'ModelYearCode': ModelYearCode, 'HalfModelYearCode': HalfModelYearCode, 'FullModelYearCode': FullModelYearCode, 'ProductionDate': ProductionDate, 'ChassisNumber': ChassisNumber, 'EligibleForIntegratedServiceCare': EligibleForIntegratedServiceCare }); getTypeName() => "VehicleBaseDetail"; TypeContext? context = _ctx; } class VehicleConsumption implements IConvertible { int? Id; double? Lkm; double? Mpg; VehicleConsumption({this.Id,this.Lkm,this.Mpg}); VehicleConsumption.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Lkm = JsonConverters.toDouble(json['Lkm']); Mpg = JsonConverters.toDouble(json['Mpg']); return this; } Map toJson() => { 'Id': Id, 'Lkm': Lkm, 'Mpg': Mpg }; getTypeName() => "VehicleConsumption"; TypeContext? context = _ctx; } class Equipment implements IConvertible { int? Id; String? Code; String? Description; Equipment({this.Id,this.Code,this.Description}); Equipment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Code = json['Code']; Description = json['Description']; return this; } Map toJson() => { 'Id': Id, 'Code': Code, 'Description': Description }; getTypeName() => "Equipment"; TypeContext? context = _ctx; } class Equipmentv2 extends Equipment implements IConvertible { int? Importance; bool? IsAdditional; Equipmentv2({this.Importance,this.IsAdditional}); Equipmentv2.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Importance = json['Importance']; IsAdditional = json['IsAdditional']; return this; } Map toJson() => super.toJson()..addAll({ 'Importance': Importance, 'IsAdditional': IsAdditional }); getTypeName() => "Equipmentv2"; TypeContext? context = _ctx; } class VehicleEquipmentCategory implements IConvertible { int? Order; String? Code; String? Description; List? Equipment; VehicleEquipmentCategory({this.Order,this.Code,this.Description,this.Equipment}); VehicleEquipmentCategory.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Order = json['Order']; Code = json['Code']; Description = json['Description']; Equipment = JsonConverters.fromJson(json['Equipment'],'List',context!); return this; } Map toJson() => { 'Order': Order, 'Code': Code, 'Description': Description, 'Equipment': JsonConverters.toJson(Equipment,'List',context!) }; getTypeName() => "VehicleEquipmentCategory"; TypeContext? context = _ctx; } class VehicleEmissionClass implements IConvertible { String? Colour; String? Rating; VehicleEmissionClass({this.Colour,this.Rating}); VehicleEmissionClass.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Colour = json['Colour']; Rating = json['Rating']; return this; } Map toJson() => { 'Colour': Colour, 'Rating': Rating }; getTypeName() => "VehicleEmissionClass"; TypeContext? context = _ctx; } class VehicleAttribute implements IConvertible { String? Description; String? Value; VehicleAttribute({this.Description,this.Value}); VehicleAttribute.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Description = json['Description']; Value = json['Value']; return this; } Map toJson() => { 'Description': Description, 'Value': Value }; getTypeName() => "VehicleAttribute"; TypeContext? context = _ctx; } class VehicleIntegratedServiceCareOption implements IConvertible { String? OptionCode; String? BM7NST; String? FullModelYear; String? IntegratedProductType; String? CustomerDescription; String? OneAgentProductType; VehicleIntegratedServiceCareOption({this.OptionCode,this.BM7NST,this.FullModelYear,this.IntegratedProductType,this.CustomerDescription,this.OneAgentProductType}); VehicleIntegratedServiceCareOption.fromJson(Map json) { fromMap(json); } fromMap(Map json) { OptionCode = json['OptionCode']; BM7NST = json['BM7NST']; FullModelYear = json['FullModelYear']; IntegratedProductType = json['IntegratedProductType']; CustomerDescription = json['CustomerDescription']; OneAgentProductType = json['OneAgentProductType']; return this; } Map toJson() => { 'OptionCode': OptionCode, 'BM7NST': BM7NST, 'FullModelYear': FullModelYear, 'IntegratedProductType': IntegratedProductType, 'CustomerDescription': CustomerDescription, 'OneAgentProductType': OneAgentProductType }; getTypeName() => "VehicleIntegratedServiceCareOption"; TypeContext? context = _ctx; } class VehicleDetail extends VehicleBaseDetail implements IConvertible { String? RetailPrice_ExVAT; String? OTR; String? ActualPrice; String? TotalOfferValue; bool? IsHOBackOrderAccountVehicle; VehicleConsumption? ConsumptionCombined; VehicleConsumption? ConsumptionExtraUrban; VehicleConsumption? ConsumptionUrban; VehicleConsumption? WltpFuelConsumptionCombined; VehicleConsumption? WltpFuelConsumptionExtraHigh; VehicleConsumption? WltpFuelConsumptionHigh; VehicleConsumption? WltpFuelConsumptionLow; VehicleConsumption? WltpFuelConsumptionMedium; List? EquipmentCategories; VehicleEmissionClass? VehicleEnergyEfficiencyClass; List? VehicleData; List? IntegratedProducts = []; List? IspVehicleCustomerDescriptions; String? ColourCode; String? UpholsteryCode; VehicleDetail({this.RetailPrice_ExVAT,this.OTR,this.ActualPrice,this.TotalOfferValue,this.IsHOBackOrderAccountVehicle,this.ConsumptionCombined,this.ConsumptionExtraUrban,this.ConsumptionUrban,this.WltpFuelConsumptionCombined,this.WltpFuelConsumptionExtraHigh,this.WltpFuelConsumptionHigh,this.WltpFuelConsumptionLow,this.WltpFuelConsumptionMedium,this.EquipmentCategories,this.VehicleEnergyEfficiencyClass,this.VehicleData,this.IntegratedProducts,this.IspVehicleCustomerDescriptions,this.ColourCode,this.UpholsteryCode}); VehicleDetail.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); RetailPrice_ExVAT = json['RetailPrice_ExVAT']; OTR = json['OTR']; ActualPrice = json['ActualPrice']; TotalOfferValue = json['TotalOfferValue']; IsHOBackOrderAccountVehicle = json['IsHOBackOrderAccountVehicle']; ConsumptionCombined = JsonConverters.fromJson(json['ConsumptionCombined'],'VehicleConsumption',context!); ConsumptionExtraUrban = JsonConverters.fromJson(json['ConsumptionExtraUrban'],'VehicleConsumption',context!); ConsumptionUrban = JsonConverters.fromJson(json['ConsumptionUrban'],'VehicleConsumption',context!); WltpFuelConsumptionCombined = JsonConverters.fromJson(json['WltpFuelConsumptionCombined'],'VehicleConsumption',context!); WltpFuelConsumptionExtraHigh = JsonConverters.fromJson(json['WltpFuelConsumptionExtraHigh'],'VehicleConsumption',context!); WltpFuelConsumptionHigh = JsonConverters.fromJson(json['WltpFuelConsumptionHigh'],'VehicleConsumption',context!); WltpFuelConsumptionLow = JsonConverters.fromJson(json['WltpFuelConsumptionLow'],'VehicleConsumption',context!); WltpFuelConsumptionMedium = JsonConverters.fromJson(json['WltpFuelConsumptionMedium'],'VehicleConsumption',context!); EquipmentCategories = JsonConverters.fromJson(json['EquipmentCategories'],'List',context!); VehicleEnergyEfficiencyClass = JsonConverters.fromJson(json['VehicleEnergyEfficiencyClass'],'VehicleEmissionClass',context!); VehicleData = JsonConverters.fromJson(json['VehicleData'],'List',context!); IntegratedProducts = JsonConverters.fromJson(json['IntegratedProducts'],'List',context!); IspVehicleCustomerDescriptions = JsonConverters.fromJson(json['IspVehicleCustomerDescriptions'],'List',context!); ColourCode = json['ColourCode']; UpholsteryCode = json['UpholsteryCode']; return this; } Map toJson() => super.toJson()..addAll({ 'RetailPrice_ExVAT': RetailPrice_ExVAT, 'OTR': OTR, 'ActualPrice': ActualPrice, 'TotalOfferValue': TotalOfferValue, 'IsHOBackOrderAccountVehicle': IsHOBackOrderAccountVehicle, 'ConsumptionCombined': JsonConverters.toJson(ConsumptionCombined,'VehicleConsumption',context!), 'ConsumptionExtraUrban': JsonConverters.toJson(ConsumptionExtraUrban,'VehicleConsumption',context!), 'ConsumptionUrban': JsonConverters.toJson(ConsumptionUrban,'VehicleConsumption',context!), 'WltpFuelConsumptionCombined': JsonConverters.toJson(WltpFuelConsumptionCombined,'VehicleConsumption',context!), 'WltpFuelConsumptionExtraHigh': JsonConverters.toJson(WltpFuelConsumptionExtraHigh,'VehicleConsumption',context!), 'WltpFuelConsumptionHigh': JsonConverters.toJson(WltpFuelConsumptionHigh,'VehicleConsumption',context!), 'WltpFuelConsumptionLow': JsonConverters.toJson(WltpFuelConsumptionLow,'VehicleConsumption',context!), 'WltpFuelConsumptionMedium': JsonConverters.toJson(WltpFuelConsumptionMedium,'VehicleConsumption',context!), 'EquipmentCategories': JsonConverters.toJson(EquipmentCategories,'List',context!), 'VehicleEnergyEfficiencyClass': JsonConverters.toJson(VehicleEnergyEfficiencyClass,'VehicleEmissionClass',context!), 'VehicleData': JsonConverters.toJson(VehicleData,'List',context!), 'IntegratedProducts': JsonConverters.toJson(IntegratedProducts,'List',context!), 'IspVehicleCustomerDescriptions': JsonConverters.toJson(IspVehicleCustomerDescriptions,'List',context!), 'ColourCode': ColourCode, 'UpholsteryCode': UpholsteryCode }); getTypeName() => "VehicleDetail"; TypeContext? context = _ctx; } class BackOrderVehicle extends VehicleDetail implements IConvertible { String? VehicleUsage; bool? UnderOffer; String? Vid; String? Fin; String? ModelYear; double? RetailPrice_IncVAT; bool? IsAMG; String? Nst; String? BM7NST; double? Acceleration; double? BootCapacity; double? TopSpeed; String? DriveConcept; double? CombustionPowerHp; double? ElectricPowerKw; double? ElectricPowerHp; double? CombinedPowerKw; double? CombinedPowerHP; String? EmissionCombined; String? EmissionExtraUrban; String? EmissionUrban; String? EmissionDirective; String? EnergyEfficiencyClass; double? WltpCombined; double? WltpLow; double? WltpMedium; double? WltpHigh; double? WltpExtraHigh; double? WltpEmissionCombined; DateTime? CreationDate; DateTime? LastUpdated; String? DisplayStockAgent; bool? IsSpecialistCar; String? Account; String? Location; String? CesarIdShipToParty; String? VehicleUsageCode; bool? MbukSecured; BackOrderVehicle({this.VehicleUsage,this.UnderOffer,this.Vid,this.Fin,this.ModelYear,this.RetailPrice_IncVAT,this.IsAMG,this.Nst,this.BM7NST,this.Acceleration,this.BootCapacity,this.TopSpeed,this.DriveConcept,this.CombustionPowerHp,this.ElectricPowerKw,this.ElectricPowerHp,this.CombinedPowerKw,this.CombinedPowerHP,this.EmissionCombined,this.EmissionExtraUrban,this.EmissionUrban,this.EmissionDirective,this.EnergyEfficiencyClass,this.WltpCombined,this.WltpLow,this.WltpMedium,this.WltpHigh,this.WltpExtraHigh,this.WltpEmissionCombined,this.CreationDate,this.LastUpdated,this.DisplayStockAgent,this.IsSpecialistCar,this.Account,this.Location,this.CesarIdShipToParty,this.VehicleUsageCode,this.MbukSecured}); BackOrderVehicle.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); VehicleUsage = json['VehicleUsage']; UnderOffer = json['UnderOffer']; Vid = json['Vid']; Fin = json['Fin']; ModelYear = json['ModelYear']; RetailPrice_IncVAT = JsonConverters.toDouble(json['RetailPrice_IncVAT']); IsAMG = json['IsAMG']; Nst = json['Nst']; BM7NST = json['BM7NST']; Acceleration = JsonConverters.toDouble(json['Acceleration']); BootCapacity = JsonConverters.toDouble(json['BootCapacity']); TopSpeed = JsonConverters.toDouble(json['TopSpeed']); DriveConcept = json['DriveConcept']; CombustionPowerHp = JsonConverters.toDouble(json['CombustionPowerHp']); ElectricPowerKw = JsonConverters.toDouble(json['ElectricPowerKw']); ElectricPowerHp = JsonConverters.toDouble(json['ElectricPowerHp']); CombinedPowerKw = JsonConverters.toDouble(json['CombinedPowerKw']); CombinedPowerHP = JsonConverters.toDouble(json['CombinedPowerHP']); EmissionCombined = json['EmissionCombined']; EmissionExtraUrban = json['EmissionExtraUrban']; EmissionUrban = json['EmissionUrban']; EmissionDirective = json['EmissionDirective']; EnergyEfficiencyClass = json['EnergyEfficiencyClass']; WltpCombined = JsonConverters.toDouble(json['WltpCombined']); WltpLow = JsonConverters.toDouble(json['WltpLow']); WltpMedium = JsonConverters.toDouble(json['WltpMedium']); WltpHigh = JsonConverters.toDouble(json['WltpHigh']); WltpExtraHigh = JsonConverters.toDouble(json['WltpExtraHigh']); WltpEmissionCombined = JsonConverters.toDouble(json['WltpEmissionCombined']); CreationDate = JsonConverters.fromJson(json['CreationDate'],'DateTime',context!); LastUpdated = JsonConverters.fromJson(json['LastUpdated'],'DateTime',context!); DisplayStockAgent = json['DisplayStockAgent']; IsSpecialistCar = json['IsSpecialistCar']; Account = json['Account']; Location = json['Location']; CesarIdShipToParty = json['CesarIdShipToParty']; VehicleUsageCode = json['VehicleUsageCode']; MbukSecured = json['MbukSecured']; return this; } Map toJson() => super.toJson()..addAll({ 'VehicleUsage': VehicleUsage, 'UnderOffer': UnderOffer, 'Vid': Vid, 'Fin': Fin, 'ModelYear': ModelYear, 'RetailPrice_IncVAT': RetailPrice_IncVAT, 'IsAMG': IsAMG, 'Nst': Nst, 'BM7NST': BM7NST, 'Acceleration': Acceleration, 'BootCapacity': BootCapacity, 'TopSpeed': TopSpeed, 'DriveConcept': DriveConcept, 'CombustionPowerHp': CombustionPowerHp, 'ElectricPowerKw': ElectricPowerKw, 'ElectricPowerHp': ElectricPowerHp, 'CombinedPowerKw': CombinedPowerKw, 'CombinedPowerHP': CombinedPowerHP, 'EmissionCombined': EmissionCombined, 'EmissionExtraUrban': EmissionExtraUrban, 'EmissionUrban': EmissionUrban, 'EmissionDirective': EmissionDirective, 'EnergyEfficiencyClass': EnergyEfficiencyClass, 'WltpCombined': WltpCombined, 'WltpLow': WltpLow, 'WltpMedium': WltpMedium, 'WltpHigh': WltpHigh, 'WltpExtraHigh': WltpExtraHigh, 'WltpEmissionCombined': WltpEmissionCombined, 'CreationDate': JsonConverters.toJson(CreationDate,'DateTime',context!), 'LastUpdated': JsonConverters.toJson(LastUpdated,'DateTime',context!), 'DisplayStockAgent': DisplayStockAgent, 'IsSpecialistCar': IsSpecialistCar, 'Account': Account, 'Location': Location, 'CesarIdShipToParty': CesarIdShipToParty, 'VehicleUsageCode': VehicleUsageCode, 'MbukSecured': MbukSecured }); getTypeName() => "BackOrderVehicle"; TypeContext? context = _ctx; } class Retailer implements IConvertible { int? Id; String? GssnId; String? Description; String? Street; String? City; String? Postcode; String? GoogleMapPostcode; String? Phone; String? Fax; String? Email; String? Website; String? RetailerGroupId; String? RetailerGroupName; bool? IsOnline; bool? IsNewCarRetailer; bool? IsUsedCarRetailer; bool? IsCentralRetailer; bool? ChatEnabled; bool? TradeInEnabled; bool? smart; String? DisplayPhoneNumberNew; String? DisplayPhoneNumberUsed; double? Latitude; double? Longitude; String? smartDescription; String? smartWebsite; String? smartPhone; String? LegacyId; bool? Agent; int? MarketAreaId; String? DigitalLoungeParentGssnId; bool? SendLeadsToDigitalLoungeParent; RetailerOpeningTimes? OpeningTimes; Retailer({this.Id,this.GssnId,this.Description,this.Street,this.City,this.Postcode,this.GoogleMapPostcode,this.Phone,this.Fax,this.Email,this.Website,this.RetailerGroupId,this.RetailerGroupName,this.IsOnline,this.IsNewCarRetailer,this.IsUsedCarRetailer,this.IsCentralRetailer,this.ChatEnabled,this.TradeInEnabled,this.smart,this.DisplayPhoneNumberNew,this.DisplayPhoneNumberUsed,this.Latitude,this.Longitude,this.smartDescription,this.smartWebsite,this.smartPhone,this.LegacyId,this.Agent,this.MarketAreaId,this.DigitalLoungeParentGssnId,this.SendLeadsToDigitalLoungeParent,this.OpeningTimes}); Retailer.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; GssnId = json['GssnId']; Description = json['Description']; Street = json['Street']; City = json['City']; Postcode = json['Postcode']; GoogleMapPostcode = json['GoogleMapPostcode']; Phone = json['Phone']; Fax = json['Fax']; Email = json['Email']; Website = json['Website']; RetailerGroupId = json['RetailerGroupId']; RetailerGroupName = json['RetailerGroupName']; IsOnline = json['IsOnline']; IsNewCarRetailer = json['IsNewCarRetailer']; IsUsedCarRetailer = json['IsUsedCarRetailer']; IsCentralRetailer = json['IsCentralRetailer']; ChatEnabled = json['ChatEnabled']; TradeInEnabled = json['TradeInEnabled']; smart = json['smart']; DisplayPhoneNumberNew = json['DisplayPhoneNumberNew']; DisplayPhoneNumberUsed = json['DisplayPhoneNumberUsed']; Latitude = JsonConverters.toDouble(json['Latitude']); Longitude = JsonConverters.toDouble(json['Longitude']); smartDescription = json['smartDescription']; smartWebsite = json['smartWebsite']; smartPhone = json['smartPhone']; LegacyId = json['LegacyId']; Agent = json['Agent']; MarketAreaId = json['MarketAreaId']; DigitalLoungeParentGssnId = json['DigitalLoungeParentGssnId']; SendLeadsToDigitalLoungeParent = json['SendLeadsToDigitalLoungeParent']; OpeningTimes = JsonConverters.fromJson(json['OpeningTimes'],'RetailerOpeningTimes',context!); return this; } Map toJson() => { 'Id': Id, 'GssnId': GssnId, 'Description': Description, 'Street': Street, 'City': City, 'Postcode': Postcode, 'GoogleMapPostcode': GoogleMapPostcode, 'Phone': Phone, 'Fax': Fax, 'Email': Email, 'Website': Website, 'RetailerGroupId': RetailerGroupId, 'RetailerGroupName': RetailerGroupName, 'IsOnline': IsOnline, 'IsNewCarRetailer': IsNewCarRetailer, 'IsUsedCarRetailer': IsUsedCarRetailer, 'IsCentralRetailer': IsCentralRetailer, 'ChatEnabled': ChatEnabled, 'TradeInEnabled': TradeInEnabled, 'smart': smart, 'DisplayPhoneNumberNew': DisplayPhoneNumberNew, 'DisplayPhoneNumberUsed': DisplayPhoneNumberUsed, 'Latitude': Latitude, 'Longitude': Longitude, 'smartDescription': smartDescription, 'smartWebsite': smartWebsite, 'smartPhone': smartPhone, 'LegacyId': LegacyId, 'Agent': Agent, 'MarketAreaId': MarketAreaId, 'DigitalLoungeParentGssnId': DigitalLoungeParentGssnId, 'SendLeadsToDigitalLoungeParent': SendLeadsToDigitalLoungeParent, 'OpeningTimes': JsonConverters.toJson(OpeningTimes,'RetailerOpeningTimes',context!) }; getTypeName() => "Retailer"; TypeContext? context = _ctx; } abstract class ICommissionNumber { String? CommissionNumber; } class GetBackOrderMatchResponse implements IConvertible { List? Vehicles = []; List? ClosestMatchVehicles = []; List? OtherMatchVehicles = []; List? ModelMatchVehicles = []; GetBackOrderMatchResponse({this.Vehicles,this.ClosestMatchVehicles,this.OtherMatchVehicles,this.ModelMatchVehicles}); GetBackOrderMatchResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Vehicles = JsonConverters.fromJson(json['Vehicles'],'List',context!); ClosestMatchVehicles = JsonConverters.fromJson(json['ClosestMatchVehicles'],'List',context!); OtherMatchVehicles = JsonConverters.fromJson(json['OtherMatchVehicles'],'List',context!); ModelMatchVehicles = JsonConverters.fromJson(json['ModelMatchVehicles'],'List',context!); return this; } Map toJson() => { 'Vehicles': JsonConverters.toJson(Vehicles,'List',context!), 'ClosestMatchVehicles': JsonConverters.toJson(ClosestMatchVehicles,'List',context!), 'OtherMatchVehicles': JsonConverters.toJson(OtherMatchVehicles,'List',context!), 'ModelMatchVehicles': JsonConverters.toJson(ModelMatchVehicles,'List',context!) }; getTypeName() => "GetBackOrderMatchResponse"; TypeContext? context = _ctx; } // @Route("/v1/backorder/match/{Guid}", "GET") class GetBackOrderVehicleMatchRequest extends GetBackOrderMatchRequest implements IReturn, IGet, IConvertible { GetBackOrderVehicleMatchRequest(); GetBackOrderVehicleMatchRequest.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => GetBackOrderMatchResponse(); getResponseTypeName() => "GetBackOrderMatchResponse"; getTypeName() => "GetBackOrderVehicleMatchRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'prod_api_agency_orch_mb_dhc.rapp_customers.co.uk', types: { 'GetBackOrderMatchRequest': TypeInfo(TypeOf.Class, create:() => GetBackOrderMatchRequest()), 'Vehicle': TypeInfo(TypeOf.Class, create:() => Vehicle()), 'VehicleCriteriaMatch': TypeInfo(TypeOf.Class, create:() => VehicleCriteriaMatch()), 'OfferPriceProductType': TypeInfo(TypeOf.Enum, enumValues:OfferPriceProductType.values), 'Price': TypeInfo(TypeOf.Class, create:() => Price()), 'Retailer': TypeInfo(TypeOf.Class, create:() => Retailer()), 'VehicleBaseDetail': TypeInfo(TypeOf.Class, create:() => VehicleBaseDetail()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'VehicleConsumption': TypeInfo(TypeOf.Class, create:() => VehicleConsumption()), 'Equipment': TypeInfo(TypeOf.Class, create:() => Equipment()), 'Equipmentv2': TypeInfo(TypeOf.Class, create:() => Equipmentv2()), 'VehicleEquipmentCategory': TypeInfo(TypeOf.Class, create:() => VehicleEquipmentCategory()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'VehicleEmissionClass': TypeInfo(TypeOf.Class, create:() => VehicleEmissionClass()), 'VehicleAttribute': TypeInfo(TypeOf.Class, create:() => VehicleAttribute()), 'VehicleIntegratedServiceCareOption': TypeInfo(TypeOf.Class, create:() => VehicleIntegratedServiceCareOption()), 'VehicleDetail': TypeInfo(TypeOf.Class, create:() => VehicleDetail()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'BackOrderVehicle': TypeInfo(TypeOf.Class, create:() => BackOrderVehicle()), 'RetailerOpeningTimes': TypeInfo(TypeOf.Class, create:() => RetailerOpeningTimes()), 'ICommissionNumber': TypeInfo(TypeOf.Interface), 'GetBackOrderMatchResponse': TypeInfo(TypeOf.Class, create:() => GetBackOrderMatchResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetBackOrderVehicleMatchRequest': TypeInfo(TypeOf.Class, create:() => GetBackOrderVehicleMatchRequest()), });