You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
/// id : 1887
|
|
|
|
/// ip : "27.18.151.119"
|
|
|
|
/// dz : "中国 湖北省 武汉市"
|
|
|
|
/// wl : "电信"
|
|
|
|
|
|
|
|
class IpData {
|
|
|
|
IpData({
|
|
|
|
int id,
|
|
|
|
String ip,
|
|
|
|
String dz,
|
|
|
|
String wl,}){
|
|
|
|
_id = id;
|
|
|
|
_ip = ip;
|
|
|
|
_dz = dz;
|
|
|
|
_wl = wl;
|
|
|
|
}
|
|
|
|
|
|
|
|
IpData.fromJson(dynamic json) {
|
|
|
|
_id = json['id'];
|
|
|
|
_ip = json['ip'];
|
|
|
|
_dz = json['dz'];
|
|
|
|
_wl = json['wl'];
|
|
|
|
}
|
|
|
|
int _id;
|
|
|
|
String _ip;
|
|
|
|
String _dz;
|
|
|
|
String _wl;
|
|
|
|
|
|
|
|
int get id => _id;
|
|
|
|
String get ip => _ip;
|
|
|
|
String get dz => _dz;
|
|
|
|
String get wl => _wl;
|
|
|
|
|
|
|
|
Map<String, dynamic> toJson() {
|
|
|
|
final map = <String, dynamic>{};
|
|
|
|
map['id'] = _id;
|
|
|
|
map['ip'] = _ip;
|
|
|
|
map['dz'] = _dz;
|
|
|
|
map['wl'] = _wl;
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|