Map<String, dynamic> toJson() => {'room_grants': roomGrants.map((grant) => grant.toJson()).toList(), 'total': total};