asMap method

  1. @override
Map<String, Object?> asMap()
override

Returns the numeric value data as a map like Map<String, dynamic>.

Implementation

@override
Map<String, Object?> asMap() {
  return {'units': 'celsius', 'temperature': inCelsius};
}