IosBatteryInfo.fromJson constructor

  1. @override
IosBatteryInfo.fromJson(
  1. Map<String, dynamic> json
)

Implementation

@override
IosBatteryInfo.fromJson(Map<String, dynamic> json) {
  this.batteryLevel = json["batteryLevel"];
  this.chargingStatus = getChargingStatus(json["batteryStatus"]);
}