toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'accounts'] = this.accounts;
if (this.activeSessions != null) {
json[r'activeSessions'] = this.activeSessions;
} else {
json[r'activeSessions'] = null;
}
if (this.host != null) {
json[r'host'] = this.host;
} else {
json[r'host'] = null;
}
if (this.lastSeen != null) {
json[r'lastSeen'] = this.lastSeen;
} else {
json[r'lastSeen'] = null;
}
if (this.machine != null) {
json[r'machine'] = this.machine;
} else {
json[r'machine'] = null;
}
if (this.os != null) {
json[r'os'] = this.os;
} else {
json[r'os'] = null;
}
return json;
}