toMap method

Map<String, Object> toMap()

API Documentation for toMap.

Implementation

Map<String, Object> toMap() => <String, Object>{
      'level': level,
      'isCharging': isCharging,
      'status': status,
      'temperature': temperature,
    };