AndroidBatteryInfo.fromJson constructor
Deserialize data from json
Implementation
AndroidBatteryInfo.fromJson(Map<String, dynamic> json) {
this.batteryCapacity = json["batteryCapacity"];
this.batteryLevel = json["batteryLevel"];
this.chargingStatus = getChargingStatus(json["chargingStatus"]);
this.chargeTimeRemaining = json["chargeTimeRemaining"];
this.currentAverage = json["currentAverage"];
this.currentNow = json["currentNow"];
this.health = json["health"];
this.pluggedStatus = json["pluggedStatus"];
this.present = json["present"];
this.scale = json["scale"];
this.remainingEnergy = json["remainingEnergy"];
this.technology = json["technology"];
this.temperature = json["temperature"];
this.voltage = json["voltage"];
}