fromMap static method

BatteryInfo fromMap(
  1. Map map
)

Implementation

static BatteryInfo fromMap(Map<dynamic, dynamic> map) {
  return BatteryInfo(
    chargeLevel:  map["chargeLevel"],
      healthLevel: map["healthLevel"],
      healthStatus: HealthStatus.fromMap(map["healthStatus"])
  );
}