toJson method
Implementation
Map<String, Object?> toJson() {
final ip = this.ip;
final lastSeen = this.lastSeen;
final userAgent = this.userAgent;
return {
if (ip != null) 'ip': ip,
if (lastSeen != null) 'last_seen': lastSeen,
if (userAgent != null) 'user_agent': userAgent,
};
}