toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var allowedValues = this.allowedValues;
  var autoCompleteUrl = this.autoCompleteUrl;
  var configuration = this.configuration;
  var defaultValue = this.defaultValue;
  var hasDefaultValue = this.hasDefaultValue;
  var key = this.key;
  var name = this.name;
  var operations = this.operations;
  var required = this.required;
  var schema = this.schema;

  final json = <String, Object?>{};
  json[r'allowedValues'] = allowedValues;
  if (autoCompleteUrl != null) {
    json[r'autoCompleteUrl'] = autoCompleteUrl;
  }
  if (configuration != null) {
    json[r'configuration'] = configuration;
  }
  if (defaultValue != null) {
    json[r'defaultValue'] = defaultValue;
  }
  json[r'hasDefaultValue'] = hasDefaultValue;
  json[r'key'] = key;
  json[r'name'] = name;
  json[r'operations'] = operations;
  json[r'required'] = required;
  json[r'schema'] = schema.toJson();
  return json;
}