/* Options: Date: 2025-06-27 23:14:11 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: CentralVehiclesCsvRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class CsvVehicleData implements IConvertible { // @DataMember(Name="Comm") String? Comm; String? retailer; String? description; String? model; String? colour; // @DataMember(Name="Fuel Type") String? Fuel_Type; // @DataMember(Name="Trans") String? Trans; String? otr; // @DataMember(Name="Age (Days)") int? Age__Days_; // @DataMember(Name="Current Offer") String? Current_Offer; // @DataMember(Name="Offer To") String? Offer_To; // @DataMember(Name="Active Offers") List? Active_Offers = []; // @DataMember(Name="Ncl Modified") String? Ncl_Modified; // @DataMember(Name="Net Price") String? Net_Price; String? vin; // @DataMember(Name="Electric Range") int? Electric_Range; // @DataMember(Name="Electric Consumption") int? Electric_Consumption; // @DataMember(Name="Special Info") int? Special_Info; // @DataMember(Name="Personalised") int? Personalised; CsvVehicleData({this.Comm,this.retailer,this.description,this.model,this.colour,this.Fuel_Type,this.Trans,this.otr,this.Age__Days_,this.Current_Offer,this.Offer_To,this.Active_Offers,this.Ncl_Modified,this.Net_Price,this.vin,this.Electric_Range,this.Electric_Consumption,this.Special_Info,this.Personalised}); CsvVehicleData.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Comm = json['commissionNumber']; retailer = json['retailer']; description = json['description']; model = json['model']; colour = json['colour']; Fuel_Type = json['fuelType']; Trans = json['transmission']; otr = json['otr']; Age__Days_ = json['daysSincePortArrival']; Current_Offer = json['offerAmount']; Offer_To = json['offerExpiry']; Active_Offers = JsonConverters.fromJson(json['activeOffers'],'List',context!); Ncl_Modified = json['modified']; Net_Price = json['retailPrice']; vin = json['vin']; Electric_Range = json['electricRange']; Electric_Consumption = json['electricConsumption']; Special_Info = json['campaignMessagesTotal']; Personalised = json['campaignPersonalisedOfferTotal']; return this; } Map toJson() => { 'comm': Comm, 'retailer': retailer, 'description': description, 'model': model, 'colour': colour, 'fuel_Type': Fuel_Type, 'trans': Trans, 'otr': otr, 'age__Days_': Age__Days_, 'current_Offer': Current_Offer, 'offer_To': Offer_To, 'active_Offers': JsonConverters.toJson(Active_Offers,'List',context!), 'ncl_Modified': Ncl_Modified, 'net_Price': Net_Price, 'vin': vin, 'electric_Range': Electric_Range, 'electric_Consumption': Electric_Consumption, 'special_Info': Special_Info, 'personalised': Personalised }; getTypeName() => "CsvVehicleData"; TypeContext? context = _ctx; } class CentralStockResponse implements IConvertible { List? vehicles; CentralStockResponse({this.vehicles}); CentralStockResponse.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() => "CentralStockResponse"; TypeContext? context = _ctx; } // @Route("/v1/{VehicleType}/Vehicle/CentralCsv", "POST") class CentralVehiclesCsvRequest implements IReturn, IPost, IConvertible { int? min; int? max; bool? noPortArrivalDate; String? vehicleType; CentralVehiclesCsvRequest({this.min,this.max,this.noPortArrivalDate,this.vehicleType}); CentralVehiclesCsvRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { min = json['min']; max = json['max']; noPortArrivalDate = json['noPortArrivalDate']; vehicleType = json['vehicleType']; return this; } Map toJson() => { 'min': min, 'max': max, 'noPortArrivalDate': noPortArrivalDate, 'vehicleType': vehicleType }; createResponse() => CentralStockResponse(); getResponseTypeName() => "CentralStockResponse"; getTypeName() => "CentralVehiclesCsvRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'uat_api_vehicle_mgt_mb_dhc.rapp_customers.co.uk', types: { 'CsvVehicleData': TypeInfo(TypeOf.Class, create:() => CsvVehicleData()), 'CentralStockResponse': TypeInfo(TypeOf.Class, create:() => CentralStockResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CentralVehiclesCsvRequest': TypeInfo(TypeOf.Class, create:() => CentralVehiclesCsvRequest()), });