toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.description != null) {
    json[r'description'] = this.description;
  } else {
    json[r'description'] = null;
  }
  json[r'label'] = this.label;
  if (this.unit != null) {
    json[r'unit'] = this.unit;
  } else {
    json[r'unit'] = null;
  }
  return json;
}