toJson method
Implementation
Map<String, dynamic> toJson() {
final callingCountry = this.callingCountry;
final emergencyPhoneNumber = this.emergencyPhoneNumber;
final testPhoneNumber = this.testPhoneNumber;
return {
'CallingCountry': callingCountry,
'EmergencyPhoneNumber': emergencyPhoneNumber,
if (testPhoneNumber != null) 'TestPhoneNumber': testPhoneNumber,
};
}