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