toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.phoneNumber != null) {
    json[r'phoneNumber'] = this.phoneNumber;
  } else {
    json[r'phoneNumber'] = null;
  }
  if (this.isValid != null) {
    json[r'isValid'] = this.isValid;
  } else {
    json[r'isValid'] = null;
  }
  if (this.countryCode != null) {
    json[r'countryCode'] = this.countryCode;
  } else {
    json[r'countryCode'] = null;
  }
  if (this.dialCode != null) {
    json[r'dialCode'] = this.dialCode;
  } else {
    json[r'dialCode'] = null;
  }
  if (this.nationalNumber != null) {
    json[r'nationalNumber'] = this.nationalNumber;
  } else {
    json[r'nationalNumber'] = null;
  }
  if (this.internationalFormat != null) {
    json[r'internationalFormat'] = this.internationalFormat;
  } else {
    json[r'internationalFormat'] = null;
  }
  if (this.nationalFormat != null) {
    json[r'nationalFormat'] = this.nationalFormat;
  } else {
    json[r'nationalFormat'] = null;
  }
  if (this.lineType != null) {
    json[r'lineType'] = this.lineType;
  } else {
    json[r'lineType'] = null;
  }
  if (this.carrier != null) {
    json[r'carrier'] = this.carrier;
  } else {
    json[r'carrier'] = null;
  }
  return json;
}