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

@@ -78,8 +78,8 @@ class AddAssetsResponseDto {
return AddAssetsResponseDto(
successfullyAdded: mapValueOfType<int>(json, r'successfullyAdded')!,
alreadyInAlbum: json[r'alreadyInAlbum'] is List
? (json[r'alreadyInAlbum'] as List).cast<String>()
alreadyInAlbum: json[r'alreadyInAlbum'] is Iterable
? (json[r'alreadyInAlbum'] as Iterable).cast<String>().toList(growable: false)
: const [],
album: AlbumResponseDto.fromJson(json[r'album']),
);