toMap method

Map<String, dynamic> toMap()

Converts license information into a map.

Returns a map with name and URL in OpenAPI license format.

Implementation

Map<String, dynamic> toMap() => {'url': url, 'name': name};