/// ip : "27.18.151.119" /// pro : "湖北省" /// proCode : "420000" /// city : "武汉市" /// cityCode : "420100" /// region : "" /// regionCode : "0" /// addr : "湖北省武汉市 电信" /// regionNames : "" /// err : "" class IpData { IpData({ String ip, String pro, String proCode, String city, String cityCode, String region, String regionCode, String addr, String regionNames, String err,}){ _ip = ip; _pro = pro; _proCode = proCode; _city = city; _cityCode = cityCode; _region = region; _regionCode = regionCode; _addr = addr; _regionNames = regionNames; _err = err; } IpData.fromJson(dynamic json) { _ip = json['ip']; _pro = json['pro']; _proCode = json['proCode']; _city = json['city']; _cityCode = json['cityCode']; _region = json['region']; _regionCode = json['regionCode']; _addr = json['addr']; _regionNames = json['regionNames']; _err = json['err']; } String _ip; String _pro; String _proCode; String _city; String _cityCode; String _region; String _regionCode; String _addr; String _regionNames; String _err; IpData copyWith({ String ip, String pro, String proCode, String city, String cityCode, String region, String regionCode, String addr, String regionNames, String err, }) => IpData( ip: ip ?? _ip, pro: pro ?? _pro, proCode: proCode ?? _proCode, city: city ?? _city, cityCode: cityCode ?? _cityCode, region: region ?? _region, regionCode: regionCode ?? _regionCode, addr: addr ?? _addr, regionNames: regionNames ?? _regionNames, err: err ?? _err, ); String get ip => _ip; String get pro => _pro; String get proCode => _proCode; String get city => _city; String get cityCode => _cityCode; String get region => _region; String get regionCode => _regionCode; String get addr => _addr; String get regionNames => _regionNames; String get err => _err; Map toJson() { final map = {}; map['ip'] = _ip; map['pro'] = _pro; map['proCode'] = _proCode; map['city'] = _city; map['cityCode'] = _cityCode; map['region'] = _region; map['regionCode'] = _regionCode; map['addr'] = _addr; map['regionNames'] = _regionNames; map['err'] = _err; return map; } }