toJson method

Map<String, dynamic> toJson()

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,
  };
}