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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 47 additions and 47 deletions

View file

@ -61,8 +61,8 @@ class CheckExistingAssetsDto {
}());
return CheckExistingAssetsDto(
deviceAssetIds: json[r'deviceAssetIds'] is List
? (json[r'deviceAssetIds'] as List).cast<String>()
deviceAssetIds: json[r'deviceAssetIds'] is Iterable
? (json[r'deviceAssetIds'] as Iterable).cast<String>().toList(growable: false)
: const [],
deviceId: mapValueOfType<String>(json, r'deviceId')!,
);