toJson method
Implementation
@override
Object toJson() => {
'type': type.toJson(),
if (format.isNotDefault) 'format': format,
if (title.isNotDefault) 'title': title,
if (description.isNotDefault) 'description': description,
if (nullable.isNotDefault) 'nullable': nullable,
if (enum$.isNotDefault) 'enum': enum$,
if (items != null) 'items': items!.toJson(),
if (maxItems.isNotDefault) 'maxItems': encodeInt64(maxItems),
if (minItems.isNotDefault) 'minItems': encodeInt64(minItems),
if (properties.isNotDefault) 'properties': encodeMap(properties),
if (required.isNotDefault) 'required': required,
if (minProperties.isNotDefault) 'minProperties': encodeInt64(minProperties),
if (maxProperties.isNotDefault) 'maxProperties': encodeInt64(maxProperties),
if (minimum != null) 'minimum': encodeDouble(minimum),
if (maximum != null) 'maximum': encodeDouble(maximum),
if (minLength.isNotDefault) 'minLength': encodeInt64(minLength),
if (maxLength.isNotDefault) 'maxLength': encodeInt64(maxLength),
if (pattern.isNotDefault) 'pattern': pattern,
if (example != null) 'example': example!.toJson(),
if (anyOf.isNotDefault) 'anyOf': encodeList(anyOf),
if (propertyOrdering.isNotDefault) 'propertyOrdering': propertyOrdering,
if (default$ != null) 'default': default$!.toJson(),
};