After Width: | Height: | Size: 812 B |
After Width: | Height: | Size: 736 B |
After Width: | Height: | Size: 840 B |
After Width: | Height: | Size: 824 B |
After Width: | Height: | Size: 596 B |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1016 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 666 B |
After Width: | Height: | Size: 672 B |
After Width: | Height: | Size: 622 B |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 624 B |
After Width: | Height: | Size: 666 B |
After Width: | Height: | Size: 574 B |
After Width: | Height: | Size: 980 B |
After Width: | Height: | Size: 888 B |
@ -1,42 +1,104 @@
|
||||
/// id : 1887 |
||||
/// ip : "27.18.151.119" |
||||
/// dz : "中国 湖北省 武汉市" |
||||
/// wl : "电信" |
||||
/// pro : "湖北省" |
||||
/// proCode : "420000" |
||||
/// city : "武汉市" |
||||
/// cityCode : "420100" |
||||
/// region : "" |
||||
/// regionCode : "0" |
||||
/// addr : "湖北省武汉市 电信" |
||||
/// regionNames : "" |
||||
/// err : "" |
||||
|
||||
class IpData { |
||||
IpData({ |
||||
int id, |
||||
String ip, |
||||
String dz, |
||||
String wl,}){ |
||||
_id = id; |
||||
String pro, |
||||
String proCode, |
||||
String city, |
||||
String cityCode, |
||||
String region, |
||||
String regionCode, |
||||
String addr, |
||||
String regionNames, |
||||
String err,}){ |
||||
_ip = ip; |
||||
_dz = dz; |
||||
_wl = wl; |
||||
_pro = pro; |
||||
_proCode = proCode; |
||||
_city = city; |
||||
_cityCode = cityCode; |
||||
_region = region; |
||||
_regionCode = regionCode; |
||||
_addr = addr; |
||||
_regionNames = regionNames; |
||||
_err = err; |
||||
} |
||||
|
||||
IpData.fromJson(dynamic json) { |
||||
_id = json['id']; |
||||
_ip = json['ip']; |
||||
_dz = json['dz']; |
||||
_wl = json['wl']; |
||||
_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']; |
||||
} |
||||
int _id; |
||||
String _ip; |
||||
String _dz; |
||||
String _wl; |
||||
|
||||
int get id => _id; |
||||
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 dz => _dz; |
||||
String get wl => _wl; |
||||
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<String, dynamic> toJson() { |
||||
final map = <String, dynamic>{}; |
||||
map['id'] = _id; |
||||
map['ip'] = _ip; |
||||
map['dz'] = _dz; |
||||
map['wl'] = _wl; |
||||
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; |
||||
} |
||||
|
||||
|