toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (usage != null) {
    _json[r'usage'] = usage;
  }
  if (temperature != null) {
    _json[r'temperature'] = temperature;
  }
  return _json;
}