toMap method

Map<String, dynamic> toMap()

Converts the InfoObject to a map.

Implementation

Map<String, dynamic> toMap() {
  return {
    'title': title,
    if (description != null) 'description': description,
    if (termsOfService != null) 'termsOfService': termsOfService,
    if (contact != null) 'contact': contact!.toMap(),
    if (license != null) 'license': license!.toMap(),
    'version': version,
  };
}