toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'fingerprint'] = this.fingerprint;
if (this.cores != null) {
json[r'cores'] = this.cores;
} else {
json[r'cores'] = null;
}
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.ip != null) {
json[r'ip'] = this.ip;
} else {
json[r'ip'] = null;
}
if (this.hostname != null) {
json[r'hostname'] = this.hostname;
} else {
json[r'hostname'] = null;
}
if (this.platform != null) {
json[r'platform'] = this.platform;
} else {
json[r'platform'] = null;
}
if (this.metadata != null) {
json[r'metadata'] = this.metadata;
} else {
json[r'metadata'] = null;
}
return json;
}