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