/* Options: Date: 2026-10-12 11:03:57 Version: 10.20 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: VehicleDetailsRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class VehicleAuditDetails implements IConvertible { String? userId; bool? status; String? notes; String? creationDate; VehicleAuditDetails({this.userId,this.status,this.notes,this.creationDate}); VehicleAuditDetails.fromJson(Map json) { fromMap(json); } fromMap(Map json) { userId = json['userId']; status = json['status']; notes = json['notes']; creationDate = json['creationDate']; return this; } Map toJson() => { 'userId': userId, 'status': status, 'notes': notes, 'creationDate': creationDate }; getTypeName() => "VehicleAuditDetails"; TypeContext? context = _ctx; } class BackOrderVehicleDetailsBase implements IConvertible { String vin = ""; String commissionNumber = ""; String description = ""; String model = ""; String fullModelYearCode = ""; int retailerId = 0; String imageUrl = ""; String colour = ""; String colourDescription = ""; String bodyStyle = ""; String fuelType = ""; String transmission = ""; String transmissionType = ""; String package = ""; List packages = []; String line = ""; String mappedLine = ""; String upholstery = ""; String upholsteryDescription = ""; String usageCode = ""; String account = ""; String nst = ""; String baumuster = ""; double? electricRange; double? electricConsumption; double retailPrice_ExVAT = 0; double? actualPrice; double otrPrice = 0; double p11D = 0; String vehicleType = ""; bool? secured; DateTime? portArrivalDate; String displayRetailer = ""; String location = ""; String bm7NST = ""; bool? isAvailableOnline; bool? isSpecialistCar; bool? isSellable; bool? inBackOrderAccount; List vehicleAuditDetails = []; List? ispVehicleCustomerDescriptions; bool? underOffer; bool? isAllocatedToBackOrder; bool? eligibleForMaTransfer; String? confirmedProductionDate; String? forecastedArrivalDate; BackOrderVehicleDetailsBase({this.vin="",this.commissionNumber="",this.description="",this.model="",this.fullModelYearCode="",this.retailerId=0,this.imageUrl="",this.colour="",this.colourDescription="",this.bodyStyle="",this.fuelType="",this.transmission="",this.transmissionType="",this.package="",this.packages=const [],this.line="",this.mappedLine="",this.upholstery="",this.upholsteryDescription="",this.usageCode="",this.account="",this.nst="",this.baumuster="",this.electricRange,this.electricConsumption,this.retailPrice_ExVAT=0,this.actualPrice,this.otrPrice=0,this.p11D=0,this.vehicleType="",this.secured,this.portArrivalDate,this.displayRetailer="",this.location="",this.bm7NST="",this.isAvailableOnline,this.isSpecialistCar,this.isSellable,this.inBackOrderAccount,this.vehicleAuditDetails=const [],this.ispVehicleCustomerDescriptions,this.underOffer,this.isAllocatedToBackOrder,this.eligibleForMaTransfer,this.confirmedProductionDate,this.forecastedArrivalDate}); BackOrderVehicleDetailsBase.fromJson(Map json) { fromMap(json); } fromMap(Map json) { vin = json['vin'] ?? ""; commissionNumber = json['commissionNumber'] ?? ""; description = json['description'] ?? ""; model = json['model'] ?? ""; fullModelYearCode = json['fullModelYearCode'] ?? ""; retailerId = json['retailerId'] ?? 0; imageUrl = json['imageUrl'] ?? ""; colour = json['colour'] ?? ""; colourDescription = json['colourDescription'] ?? ""; bodyStyle = json['bodyStyle'] ?? ""; fuelType = json['fuelType'] ?? ""; transmission = json['transmission'] ?? ""; transmissionType = json['transmissionType'] ?? ""; package = json['package'] ?? ""; packages = JsonConverters.fromJson(json['packages'],'List',context!) ?? []; line = json['line'] ?? ""; mappedLine = json['mappedLine'] ?? ""; upholstery = json['upholstery'] ?? ""; upholsteryDescription = json['upholsteryDescription'] ?? ""; usageCode = json['usageCode'] ?? ""; account = json['account'] ?? ""; nst = json['nst'] ?? ""; baumuster = json['baumuster'] ?? ""; electricRange = JsonConverters.toDouble(json['electricRange']); electricConsumption = JsonConverters.toDouble(json['electricConsumption']); retailPrice_ExVAT = JsonConverters.toDouble(json['retailPrice_ExVAT']) ?? 0; actualPrice = JsonConverters.toDouble(json['actualPrice']); otrPrice = JsonConverters.toDouble(json['otrPrice']) ?? 0; p11D = JsonConverters.toDouble(json['p11D']) ?? 0; vehicleType = json['vehicleType'] ?? ""; secured = json['secured']; portArrivalDate = JsonConverters.fromJson(json['portArrivalDate'],'DateTime',context!); displayRetailer = json['displayRetailer'] ?? ""; location = json['location'] ?? ""; bm7NST = json['bm7NST'] ?? ""; isAvailableOnline = json['isAvailableOnline']; isSpecialistCar = json['isSpecialistCar']; isSellable = json['isSellable']; inBackOrderAccount = json['inBackOrderAccount']; vehicleAuditDetails = JsonConverters.fromJson(json['vehicleAuditDetails'],'List',context!) ?? []; ispVehicleCustomerDescriptions = JsonConverters.fromJson(json['ispVehicleCustomerDescriptions'],'List',context!); underOffer = json['underOffer']; isAllocatedToBackOrder = json['isAllocatedToBackOrder']; eligibleForMaTransfer = json['eligibleForMaTransfer']; confirmedProductionDate = json['confirmedProductionDate']; forecastedArrivalDate = json['forecastedArrivalDate']; return this; } Map toJson() => { 'vin': vin, 'commissionNumber': commissionNumber, 'description': description, 'model': model, 'fullModelYearCode': fullModelYearCode, 'retailerId': retailerId, 'imageUrl': imageUrl, 'colour': colour, 'colourDescription': colourDescription, 'bodyStyle': bodyStyle, 'fuelType': fuelType, 'transmission': transmission, 'transmissionType': transmissionType, 'package': package, 'packages': JsonConverters.toJson(packages,'List',context!), 'line': line, 'mappedLine': mappedLine, 'upholstery': upholstery, 'upholsteryDescription': upholsteryDescription, 'usageCode': usageCode, 'account': account, 'nst': nst, 'baumuster': baumuster, 'electricRange': electricRange, 'electricConsumption': electricConsumption, 'retailPrice_ExVAT': retailPrice_ExVAT, 'actualPrice': actualPrice, 'otrPrice': otrPrice, 'p11D': p11D, 'vehicleType': vehicleType, 'secured': secured, 'portArrivalDate': JsonConverters.toJson(portArrivalDate,'DateTime',context!), 'displayRetailer': displayRetailer, 'location': location, 'bm7NST': bm7NST, 'isAvailableOnline': isAvailableOnline, 'isSpecialistCar': isSpecialistCar, 'isSellable': isSellable, 'inBackOrderAccount': inBackOrderAccount, 'vehicleAuditDetails': JsonConverters.toJson(vehicleAuditDetails,'List',context!), 'ispVehicleCustomerDescriptions': JsonConverters.toJson(ispVehicleCustomerDescriptions,'List',context!), 'underOffer': underOffer, 'isAllocatedToBackOrder': isAllocatedToBackOrder, 'eligibleForMaTransfer': eligibleForMaTransfer, 'confirmedProductionDate': confirmedProductionDate, 'forecastedArrivalDate': forecastedArrivalDate }; getTypeName() => "BackOrderVehicleDetailsBase"; TypeContext? context = _ctx; } class BackOrderVehicleDetails extends BackOrderVehicleDetailsBase implements IConvertible { String? engine; BackOrderVehicleDetails({this.engine}); BackOrderVehicleDetails.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); engine = json['engine']; return this; } Map toJson() => super.toJson()..addAll({ 'engine': engine }); getTypeName() => "BackOrderVehicleDetails"; TypeContext? context = _ctx; } class VehicleAuditDetails implements IConvertible { String userId = ""; bool? status; String notes = ""; String creationDate = ""; VehicleAuditDetails({this.userId="",this.status,this.notes="",this.creationDate=""}); VehicleAuditDetails.fromJson(Map json) { fromMap(json); } fromMap(Map json) { userId = json['userId'] ?? ""; status = json['status']; notes = json['notes'] ?? ""; creationDate = json['creationDate'] ?? ""; return this; } Map toJson() => { 'userId': userId, 'status': status, 'notes': notes, 'creationDate': creationDate }; getTypeName() => "VehicleAuditDetails"; TypeContext? context = _ctx; } class VehicleDetailsResponse implements IConvertible { BackOrderVehicleDetails? vehicle; VehicleDetailsResponse({this.vehicle}); VehicleDetailsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { vehicle = JsonConverters.fromJson(json['vehicle'],'BackOrderVehicleDetails',context!); return this; } Map toJson() => { 'vehicle': JsonConverters.toJson(vehicle,'BackOrderVehicleDetails',context!) }; getTypeName() => "VehicleDetailsResponse"; TypeContext? context = _ctx; } // @Route("/v1/details/{vehicleType}/{Identifier}", "GET") // @Route("/details/{vehicleType}/{Identifier}", "GET") class VehicleDetailsRequest implements IReturn, IGet, IConvertible { String identifier = ""; String vehicleType = ""; VehicleDetailsRequest({this.identifier="",this.vehicleType=""}); VehicleDetailsRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { identifier = json['identifier'] ?? ""; vehicleType = json['vehicleType'] ?? ""; return this; } Map toJson() => { 'identifier': identifier, 'vehicleType': vehicleType }; createResponse() => VehicleDetailsResponse(); getResponseTypeName() => "VehicleDetailsResponse"; getTypeName() => "VehicleDetailsRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'uat_api_vehicle_mgt_mb_dhc.rapp_customers.co.uk', types: { 'VehicleAuditDetails': TypeInfo(TypeOf.Class, create:() => VehicleAuditDetails()), 'BackOrderVehicleDetailsBase': TypeInfo(TypeOf.Class, create:() => BackOrderVehicleDetailsBase()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'BackOrderVehicleDetails': TypeInfo(TypeOf.Class, create:() => BackOrderVehicleDetails()), 'VehicleDetailsResponse': TypeInfo(TypeOf.Class, create:() => VehicleDetailsResponse()), 'VehicleDetailsRequest': TypeInfo(TypeOf.Class, create:() => VehicleDetailsRequest()), });