1
0
mirror of https://github.com/immich-app/immich.git synced 2025-08-08 23:07:06 +02:00

chore: update api (#2428)

This commit is contained in:
Alex
2023-05-11 10:49:28 -05:00
committed by GitHub
parent d25ddfc46b
commit 2c7821e5e6
15 changed files with 47 additions and 47 deletions

View File

@ -68,11 +68,11 @@ class CreateAlbumDto {
return CreateAlbumDto(
albumName: mapValueOfType<String>(json, r'albumName')!,
sharedWithUserIds: json[r'sharedWithUserIds'] is List
? (json[r'sharedWithUserIds'] as List).cast<String>()
sharedWithUserIds: json[r'sharedWithUserIds'] is Iterable
? (json[r'sharedWithUserIds'] as Iterable).cast<String>().toList(growable: false)
: const [],
assetIds: json[r'assetIds'] is List
? (json[r'assetIds'] as List).cast<String>()
assetIds: json[r'assetIds'] is Iterable
? (json[r'assetIds'] as Iterable).cast<String>().toList(growable: false)
: const [],
);
}