List<Photo> findPhotos(int id) { return photos .where((photo) => photo['albumId'] == id) .map(convertToPhoto) .toList(); }