toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final isoCountryCode = this.isoCountryCode;
  final phoneNumber = this.phoneNumber;
  return {
    if (isoCountryCode != null) 'IsoCountryCode': isoCountryCode,
    if (phoneNumber != null) 'PhoneNumber': phoneNumber,
  };
}