toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.countryCode != null) {
    json[r'countryCode'] = this.countryCode;
  } else {
    json[r'countryCode'] = null;
  }
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
    json[r'networks'] = this.networks;
    json[r'carriers'] = this.carriers;
  return json;
}