toJson method
Implementation
Map<String, Object?> toJson() {
var label = this.label;
var value = this.value;
final json = <String, Object?>{};
if (label != null) {
json[r'label'] = label;
}
if (value != null) {
json[r'value'] = value;
}
return json;
}