ReceiveTemperature.fromMap constructor

ReceiveTemperature.fromMap(
  1. Map map
)

Implementation

factory ReceiveTemperature.fromMap(Map<dynamic, dynamic> map) {
  final double timestamp = map['timestamp'];
  final double temperature = map['temperature'];
  return ReceiveTemperature(timestamp, temperature);
}