toJson method
Implementation
@override
Map<String, dynamic> toJson() {
final json = <String, dynamic>{'type': 'string'};
if (title != null) json['title'] = title;
if (description != null) json['description'] = description;
if (minLength != null) json['minLength'] = minLength;
if (maxLength != null) json['maxLength'] = maxLength;
if (format != null) json['format'] = format;
if (defaultValue != null) json['default'] = defaultValue;
return json;
}