Future<List<T>> getAll() async { return (await _collection.getAll()).map((map) { var entity = fromJson.call(map); entity.entityId = map[PlexCollection.ID_KEY]; return entity; }).toList(); }