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