EVProfile.fromJson constructor
EVProfile.fromJson( - Map<String, dynamic> json
)
Implementation
factory EVProfile.fromJson(final Map<String, dynamic> json) {
return EVProfile(
id: json['id'],
ports: json['ports'],
departureSoc: json['departureSoc'],
destinationSoc: json['destinationSoc'],
chargerDestSoc: json['chargerDestSoc'],
chargerDepSoc: json['chargerDepSoc'],
chargerOverheadMins: json['chargerOverheadMins'],
batteryHealth: json['battery_Health'],
batteryCapacity: json['batteryCapacity'],
towbarPossible: json['towbarPossible'],
vehicleRange: json['vehicleRange'],
efficiency: json['efficiency'],
fastCharge: json['fastCharge'],
);
}