Map<String, Object> toJson() => { 'pubkey': pubkey, 'dbSessions': dbSessions.map((e) => e.toJson()).toList(), 'userId': userId, };