RoomKeys.fromJson(Map<String, Object?> json) : rooms = (json['rooms'] as Map<String, Object?>).map((k, v) => MapEntry(k, RoomKeyBackup.fromJson(v as Map<String, Object?>)));