toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> json = <String, dynamic>{};
json['id'] = id;
json['ports'] = ports;
json['departureSoc'] = departureSoc;
json['destinationSoc'] = destinationSoc;
json['chargerDestSoc'] = chargerDestSoc;
json['chargerDepSoc'] = chargerDepSoc;
json['chargerOverheadMins'] = chargerOverheadMins;
json['battery_Health'] = batteryHealth;
json['batteryCapacity'] = batteryCapacity;
json['towbarPossible'] = towbarPossible;
json['vehicleRange'] = vehicleRange;
json['efficiency'] = efficiency;
json['fastCharge'] = fastCharge;
return json;
}