toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() {
  final chargeRate = this.chargeRate;
  final current = this.current;
  final dischargeRate = this.dischargeRate;
  final remainingCapacity = this.remainingCapacity;
  final reportTime = this.reportTime;
  final status = this.status;
  final temperature = this.temperature;
  final voltage = this.voltage;
  return {
    'chargeRate': ?chargeRate,
    'current': ?current,
    'dischargeRate': ?dischargeRate,
    'remainingCapacity': ?remainingCapacity,
    'reportTime': ?reportTime,
    'status': ?status,
    'temperature': ?temperature,
    'voltage': ?voltage,
  };
}