toMap method

Map<String, String> toMap()

Converts this object object to a JSON like map.

Implementation

Map<String, String> toMap() => {
  "countryCode": ?countryCode,
  "fullName": ?fullName,
  "language": language.code,
  "name": name,
  "script": ?script?.code,
};