toMap method

Map<String, dynamic> toMap()

Converts contact details into a map.

Returns a map with name and email in OpenAPI contact format.

Implementation

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