toMap method
Converts the OpenApiObject to a map.
Implementation
@override
Map<String, dynamic> toMap() {
return {
r'$ref': ref,
if (summary != null) 'summary': summary,
if (description != null) 'description': description,
...super.toMap(),
};
}