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.
18 lines
385 B
18 lines
385 B
class IpDomain { |
|
int? id; |
|
String? ipOrDomain; |
|
|
|
IpDomain({this.id, this.ipOrDomain}); |
|
|
|
factory IpDomain.fromJson(Map<String, dynamic> json) { |
|
return IpDomain( |
|
id: json['id'] ? json['id'] : 0, |
|
ipOrDomain: json['ipOrDomain'] ? json['ipOrDomain'] : '', |
|
); |
|
} |
|
|
|
Map<String, dynamic> toJson() => { |
|
'id': id, |
|
'ipOrDomain': ipOrDomain, |
|
}; |
|
}
|
|
|