BatteryRead.fromMap constructor

BatteryRead.fromMap(
  1. Map map
)

Implementation

factory BatteryRead.fromMap(Map<dynamic, dynamic> map) =>
    BatteryRead(map['voltage'] as double?);