toMap method

  1. @override
Map<String, dynamic> toMap()
override

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(),
  };
}