toMap method
Implementation
@override
Map<String, Object?> toMap() {
return {
if ($schema != null) r'$schema': $schema,
'type': type,
if (properties != null) 'properties': properties,
if (required != null) 'required': required,
};
}