mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
chore: regenerate open api (#2374)
This commit is contained in:
parent
b6b9f51bd7
commit
91ad584064
80 changed files with 337 additions and 497 deletions
|
|
@ -78,7 +78,7 @@ class CheckDuplicateAssetResponseDto {
|
|||
return null;
|
||||
}
|
||||
|
||||
static List<CheckDuplicateAssetResponseDto>? listFromJson(dynamic json, {bool growable = false,}) {
|
||||
static List<CheckDuplicateAssetResponseDto> listFromJson(dynamic json, {bool growable = false,}) {
|
||||
final result = <CheckDuplicateAssetResponseDto>[];
|
||||
if (json is List && json.isNotEmpty) {
|
||||
for (final row in json) {
|
||||
|
|
@ -109,12 +109,10 @@ class CheckDuplicateAssetResponseDto {
|
|||
static Map<String, List<CheckDuplicateAssetResponseDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
||||
final map = <String, List<CheckDuplicateAssetResponseDto>>{};
|
||||
if (json is Map && json.isNotEmpty) {
|
||||
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
||||
// ignore: parameter_assignments
|
||||
json = json.cast<String, dynamic>();
|
||||
for (final entry in json.entries) {
|
||||
final value = CheckDuplicateAssetResponseDto.listFromJson(entry.value, growable: growable,);
|
||||
if (value != null) {
|
||||
map[entry.key] = value;
|
||||
}
|
||||
map[entry.key] = CheckDuplicateAssetResponseDto.listFromJson(entry.value, growable: growable,);
|
||||
}
|
||||
}
|
||||
return map;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue