toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var disabled = this.disabled;
  var id = this.id;
  var optionId = this.optionId;
  var value = this.value;

  final json = <String, Object?>{};
  json[r'disabled'] = disabled;
  json[r'id'] = id;
  if (optionId != null) {
    json[r'optionId'] = optionId;
  }
  json[r'value'] = value;
  return json;
}