SensorReadingSingle.fromJson constructor

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

Implementation

factory SensorReadingSingle.fromJson(Map<String, dynamic> json) {
  return SensorReadingSingle(value: json['value'] as num);
}