toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'pressure': pressure,
    'temperature': temperature,
    'index': index,
    'alarmType': alarmtype,
  };
}