toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var auto = this.auto;
  var cfid = this.cfid;
  var deprecated = this.deprecated;
  var deprecatedSearcherKey = this.deprecatedSearcherKey;
  var displayName = this.displayName;
  var operators = this.operators;
  var orderable = this.orderable;
  var searchable = this.searchable;
  var types = this.types;
  var value = this.value;

  final json = <String, Object?>{};
  if (auto != null) {
    json[r'auto'] = auto.value;
  }
  if (cfid != null) {
    json[r'cfid'] = cfid;
  }
  if (deprecated != null) {
    json[r'deprecated'] = deprecated.value;
  }
  if (deprecatedSearcherKey != null) {
    json[r'deprecatedSearcherKey'] = deprecatedSearcherKey;
  }
  if (displayName != null) {
    json[r'displayName'] = displayName;
  }
  json[r'operators'] = operators;
  if (orderable != null) {
    json[r'orderable'] = orderable.value;
  }
  if (searchable != null) {
    json[r'searchable'] = searchable.value;
  }
  json[r'types'] = types;
  if (value != null) {
    json[r'value'] = value;
  }
  return json;
}