toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final unit = this.unit;
  final value = this.value;
  return {
    'unit': unit,
    'value': value,
  };
}