|
@@ -72,7 +72,10 @@ class SharedAlbum {
|
|
|
albumThumbnailAssetId: map['albumThumbnailAssetId'],
|
|
|
sharedUsers:
|
|
|
List<User>.from(map['sharedUsers']?.map((x) => User.fromMap(x))),
|
|
|
- assets: map['assets']?.map((x) => ImmichAsset.fromMap(x)).toList(),
|
|
|
+ assets: map['assets'] != null
|
|
|
+ ? List<ImmichAsset>.from(
|
|
|
+ map['assets']?.map((x) => ImmichAsset.fromMap(x)))
|
|
|
+ : null,
|
|
|
);
|
|
|
}
|
|
|
|