VehicleConfig.fromJson constructor
Constructs a new VehicleConfig instance from a map.
This constructor is typically used for constructing a new VehicleConfig instance from a JSON object that has been deserialized into a map. The map keys correspond to the property names of VehicleConfig and the map values are the respective values of these properties.
Implementation
factory VehicleConfig.fromJson(Map<String, dynamic> json) {
return VehicleConfig(
canActuateTrunks: json['can_actuate_trunks'],
carSpecialType: json['car_special_type'],
carType: json['car_type'],
chargePortType: json['charge_port_type'],
euVehicle: json['eu_vehicle'],
exteriorColor: json['exterior_color'],
hasLudicrousMode: json['has_ludicrous_mode'],
motorizedChargePort: json['motorized_charge_port'],
perfConfig: json['perf_config'],
plg: json['plg'],
rearSeatHeaters: json['rear_seat_heaters'],
rearSeatType: json['rear_seat_type'],
rhd: json['rhd'],
roofColor: json['roof_color'],
seatType: json['seat_type'],
spoilerType: json['spoiler_type'],
sunRoofInstalled: json['sun_roof_installed'],
thirdRowSeats: json['third_row_seats'],
timestamp: json['timestamp'],
trimBadging: json['trim_badging'],
wheelType: json['wheel_type'],
);
}