toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (chargeRate != null) 'chargeRate': chargeRate!,
  if (current != null) 'current': current!,
  if (dischargeRate != null) 'dischargeRate': dischargeRate!,
  if (remainingCapacity != null) 'remainingCapacity': remainingCapacity!,
  if (reportTime != null) 'reportTime': reportTime!,
  if (status != null) 'status': status!,
  if (temperature != null) 'temperature': temperature!,
  if (voltage != null) 'voltage': voltage!,
};