toJson method

Map<String, dynamic> toJson()

Converts this GrxPhoneNumber to a JSON map.

Returns:

{
  "phone": "11987654321",
  "countryCode": "+55"
}

Implementation

Map<String, dynamic> toJson() {
  return {'phone': phone, 'countryCode': countryCode};
}