toJson method
Implementation
Map<String, Object?> toJson() {
var lastSeen = this.lastSeen;
var friendlyLastSeen = this.friendlyLastSeen;
final json = <String, Object?>{};
if (lastSeen != null) {
json[r'lastSeen'] = lastSeen.toIso8601String();
}
if (friendlyLastSeen != null) {
json[r'friendlyLastSeen'] = friendlyLastSeen;
}
return json;
}