VehicleState.fromJson constructor
Constructs a new VehicleState instance from a map.
This constructor is typically used for constructing a new VehicleState instance from a JSON object that has been deserialized into a map. The map keys correspond to the property names of VehicleState and the map values are the respective values of these properties.
Implementation
factory VehicleState.fromJson(Map<String, dynamic> json) {
return VehicleState(
apiVersion: json['api_version'],
autoparkState: json['autopark_state'],
autoparkStateV2: json['autopark_state_v2'],
autoparkStyle: json['autopark_style'],
calendarSupported: json['calendar_supported'],
carVersion: json['car_version'],
centerDisplayState: json['center_display_state'],
df: json['df'],
dr: json['dr'],
ft: json['ft'],
homelinkNearby: json['homelink_nearby'],
lastAutoparkError: json['last_autopark_error'],
locked: json['locked'],
notificationsSupported: json['notifications_supported'],
odometer: json['odometer'],
parsedCalendarSupported: json['parsed_calendar_supported'],
pf: json['pf'],
pr: json['pr'],
remoteStart: json['remote_start'],
remoteStartSupported: json['remote_start_supported'],
rt: json['rt'],
sunRoofPercentOpen: json['sun_roof_percent_open'],
sunRoofState: json['sun_roof_state'],
timestamp: json['timestamp'],
valetMode: json['valet_mode'],
vehicleName: json['vehicle_name'],
);
}