/* Options: Date: 2025-06-27 22:43:28 Version: 8.81 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: DisplayStockRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class DisplayStock implements IConvertible { String? vehicleDescription; String? commissionNumber; String? vin; String? retailer; String? model; String? fuelType; String? transmission; String? colour; String? actualPrice; List? activeOffers = []; String? daysAtSite; String? offerTotalCurrent; String? offerExpiry; String? vehicleUsage; bool? underOffer; bool? isSellable; String? vehicleType; String? vid; String? fin; String? chassisNumber; String? line; String? modelYear; String? modelYearCode; String? vehicleClass; String? retailPrice_ExVAT; String? retailPrice_IncVAT; String? otr; String? bodyStyle; String? productRange; String? engine; bool? isAMG; String? colourGroup; String? upholstery; String? packages; String? nst; String? bM7NST; String? acceleration; String? bootCapacity; String? topSpeed; String? driveConcept; String? combustionPowerHp; String? electricPowerKw; String? electricPowerHp; String? combinedPowerKw; String? combinedPowerHP; String? electricRange; String? electricConsumption; String? emissionCombined; String? emissionExtraUrban; String? emissionUrban; String? emission; String? emissionDirective; String? energyEfficiencyClass; String? wltpCombined; String? wltpLow; String? wltpMedium; String? wltpHigh; String? wltpExtraHigh; String? wltpEmissionCombined; DateTime? portArrivalDate; DateTime? creationDate; DateTime? lastUpdated; bool? isDisplayStock; String? displayStockAgent; bool? isSpecialistCar; String? account; String? location; String? cesarIdShipToParty; String? vehicleUsageCode; bool? mbukSecured; bool? isAllocatedToBackOrder; String? backOrderReference; DisplayStock({this.vehicleDescription,this.commissionNumber,this.vin,this.retailer,this.model,this.fuelType,this.transmission,this.colour,this.actualPrice,this.activeOffers,this.daysAtSite,this.offerTotalCurrent,this.offerExpiry,this.vehicleUsage,this.underOffer,this.isSellable,this.vehicleType,this.vid,this.fin,this.chassisNumber,this.line,this.modelYear,this.modelYearCode,this.vehicleClass,this.retailPrice_ExVAT,this.retailPrice_IncVAT,this.otr,this.bodyStyle,this.productRange,this.engine,this.isAMG,this.colourGroup,this.upholstery,this.packages,this.nst,this.bM7NST,this.acceleration,this.bootCapacity,this.topSpeed,this.driveConcept,this.combustionPowerHp,this.electricPowerKw,this.electricPowerHp,this.combinedPowerKw,this.combinedPowerHP,this.electricRange,this.electricConsumption,this.emissionCombined,this.emissionExtraUrban,this.emissionUrban,this.emission,this.emissionDirective,this.energyEfficiencyClass,this.wltpCombined,this.wltpLow,this.wltpMedium,this.wltpHigh,this.wltpExtraHigh,this.wltpEmissionCombined,this.portArrivalDate,this.creationDate,this.lastUpdated,this.isDisplayStock,this.displayStockAgent,this.isSpecialistCar,this.account,this.location,this.cesarIdShipToParty,this.vehicleUsageCode,this.mbukSecured,this.isAllocatedToBackOrder,this.backOrderReference}); DisplayStock.fromJson(Map json) { fromMap(json); } fromMap(Map json) { vehicleDescription = json['vehicleDescription']; commissionNumber = json['commissionNumber']; vin = json['vin']; retailer = json['retailer']; model = json['model']; fuelType = json['fuelType']; transmission = json['transmission']; colour = json['colour']; actualPrice = json['actualPrice']; activeOffers = JsonConverters.fromJson(json['activeOffers'],'List',context!); daysAtSite = json['daysAtSite']; offerTotalCurrent = json['offerTotalCurrent']; offerExpiry = json['offerExpiry']; vehicleUsage = json['vehicleUsage']; underOffer = json['underOffer']; isSellable = json['isSellable']; vehicleType = json['vehicleType']; vid = json['vid']; fin = json['fin']; chassisNumber = json['chassisNumber']; line = json['line']; modelYear = json['modelYear']; modelYearCode = json['modelYearCode']; vehicleClass = json['vehicleClass']; retailPrice_ExVAT = json['retailPrice_ExVAT']; retailPrice_IncVAT = json['retailPrice_IncVAT']; otr = json['otr']; bodyStyle = json['bodyStyle']; productRange = json['productRange']; engine = json['engine']; isAMG = json['isAMG']; colourGroup = json['colourGroup']; upholstery = json['upholstery']; packages = json['packages']; nst = json['nst']; bM7NST = json['bM7NST']; acceleration = json['acceleration']; bootCapacity = json['bootCapacity']; topSpeed = json['topSpeed']; driveConcept = json['driveConcept']; combustionPowerHp = json['combustionPowerHp']; electricPowerKw = json['electricPowerKw']; electricPowerHp = json['electricPowerHp']; combinedPowerKw = json['combinedPowerKw']; combinedPowerHP = json['combinedPowerHP']; electricRange = json['electricRange']; electricConsumption = json['electricConsumption']; emissionCombined = json['emissionCombined']; emissionExtraUrban = json['emissionExtraUrban']; emissionUrban = json['emissionUrban']; emission = json['emission']; emissionDirective = json['emissionDirective']; energyEfficiencyClass = json['energyEfficiencyClass']; wltpCombined = json['wltpCombined']; wltpLow = json['wltpLow']; wltpMedium = json['wltpMedium']; wltpHigh = json['wltpHigh']; wltpExtraHigh = json['wltpExtraHigh']; wltpEmissionCombined = json['wltpEmissionCombined']; portArrivalDate = JsonConverters.fromJson(json['portArrivalDate'],'DateTime',context!); creationDate = JsonConverters.fromJson(json['creationDate'],'DateTime',context!); lastUpdated = JsonConverters.fromJson(json['lastUpdated'],'DateTime',context!); isDisplayStock = json['isDisplayStock']; displayStockAgent = json['displayStockAgent']; isSpecialistCar = json['isSpecialistCar']; account = json['account']; location = json['location']; cesarIdShipToParty = json['cesarIdShipToParty']; vehicleUsageCode = json['vehicleUsageCode']; mbukSecured = json['mbukSecured']; isAllocatedToBackOrder = json['isAllocatedToBackOrder']; backOrderReference = json['backOrderReference']; return this; } Map toJson() => { 'vehicleDescription': vehicleDescription, 'commissionNumber': commissionNumber, 'vin': vin, 'retailer': retailer, 'model': model, 'fuelType': fuelType, 'transmission': transmission, 'colour': colour, 'actualPrice': actualPrice, 'activeOffers': JsonConverters.toJson(activeOffers,'List',context!), 'daysAtSite': daysAtSite, 'offerTotalCurrent': offerTotalCurrent, 'offerExpiry': offerExpiry, 'vehicleUsage': vehicleUsage, 'underOffer': underOffer, 'isSellable': isSellable, 'vehicleType': vehicleType, 'vid': vid, 'fin': fin, 'chassisNumber': chassisNumber, 'line': line, 'modelYear': modelYear, 'modelYearCode': modelYearCode, 'vehicleClass': vehicleClass, 'retailPrice_ExVAT': retailPrice_ExVAT, 'retailPrice_IncVAT': retailPrice_IncVAT, 'otr': otr, 'bodyStyle': bodyStyle, 'productRange': productRange, 'engine': engine, 'isAMG': isAMG, 'colourGroup': colourGroup, 'upholstery': upholstery, 'packages': packages, 'nst': nst, 'bM7NST': bM7NST, 'acceleration': acceleration, 'bootCapacity': bootCapacity, 'topSpeed': topSpeed, 'driveConcept': driveConcept, 'combustionPowerHp': combustionPowerHp, 'electricPowerKw': electricPowerKw, 'electricPowerHp': electricPowerHp, 'combinedPowerKw': combinedPowerKw, 'combinedPowerHP': combinedPowerHP, 'electricRange': electricRange, 'electricConsumption': electricConsumption, 'emissionCombined': emissionCombined, 'emissionExtraUrban': emissionExtraUrban, 'emissionUrban': emissionUrban, 'emission': emission, 'emissionDirective': emissionDirective, 'energyEfficiencyClass': energyEfficiencyClass, 'wltpCombined': wltpCombined, 'wltpLow': wltpLow, 'wltpMedium': wltpMedium, 'wltpHigh': wltpHigh, 'wltpExtraHigh': wltpExtraHigh, 'wltpEmissionCombined': wltpEmissionCombined, 'portArrivalDate': JsonConverters.toJson(portArrivalDate,'DateTime',context!), 'creationDate': JsonConverters.toJson(creationDate,'DateTime',context!), 'lastUpdated': JsonConverters.toJson(lastUpdated,'DateTime',context!), 'isDisplayStock': isDisplayStock, 'displayStockAgent': displayStockAgent, 'isSpecialistCar': isSpecialistCar, 'account': account, 'location': location, 'cesarIdShipToParty': cesarIdShipToParty, 'vehicleUsageCode': vehicleUsageCode, 'mbukSecured': mbukSecured, 'isAllocatedToBackOrder': isAllocatedToBackOrder, 'backOrderReference': backOrderReference }; getTypeName() => "DisplayStock"; TypeContext? context = _ctx; } class DisplayStockResponse implements IConvertible { List? vehicles = []; DisplayStockResponse({this.vehicles}); DisplayStockResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { vehicles = JsonConverters.fromJson(json['vehicles'],'List',context!); return this; } Map toJson() => { 'vehicles': JsonConverters.toJson(vehicles,'List',context!) }; getTypeName() => "DisplayStockResponse"; TypeContext? context = _ctx; } // @Route("/v1/DisplayStock", "POST") class DisplayStockRequest implements IReturn, IPost, IConvertible { /** * Gssns */ // @ApiMember(Description="Gssns", IsRequired=true) List? gssns = []; DisplayStockRequest({this.gssns}); DisplayStockRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { gssns = JsonConverters.fromJson(json['gssns'],'List',context!); return this; } Map toJson() => { 'gssns': JsonConverters.toJson(gssns,'List',context!) }; createResponse() => DisplayStockResponse(); getResponseTypeName() => "DisplayStockResponse"; getTypeName() => "DisplayStockRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'uat_api_vehicle_mgt_mb_dhc.rapp_customers.co.uk', types: { 'DisplayStock': TypeInfo(TypeOf.Class, create:() => DisplayStock()), 'DisplayStockResponse': TypeInfo(TypeOf.Class, create:() => DisplayStockResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'DisplayStockRequest': TypeInfo(TypeOf.Class, create:() => DisplayStockRequest()), });