VoltageMeasurement.fromJson constructor

VoltageMeasurement.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory VoltageMeasurement.fromJson(Map<String, dynamic> json) =>
    VoltageMeasurement(
      timeSinceSampleStart: Duration(
        milliseconds:
            ((json['timeSinceSampleStart'] as double) * 1000).toInt(),
      ),
      values: Map.from(json['values']),
    );