toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.ip != null) {
json[r'ip'] = this.ip;
} else {
json[r'ip'] = null;
}
if (this.location != null) {
json[r'location'] = this.location;
} else {
json[r'location'] = null;
}
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.networkType != null) {
json[r'network_type'] = this.networkType;
} else {
json[r'network_type'] = null;
}
if (this.version != null) {
json[r'version'] = this.version;
} else {
json[r'version'] = null;
}
return json;
}