You've already forked immich
mirror of
https://github.com/immich-app/immich.git
synced 2025-08-08 23:07:06 +02:00
chore: regenerate open api (#2374)
This commit is contained in:
10
mobile/openapi/lib/model/create_album_dto.dart
generated
10
mobile/openapi/lib/model/create_album_dto.dart
generated
@ -79,7 +79,7 @@ class CreateAlbumDto {
|
||||
return null;
|
||||
}
|
||||
|
||||
static List<CreateAlbumDto>? listFromJson(dynamic json, {bool growable = false,}) {
|
||||
static List<CreateAlbumDto> listFromJson(dynamic json, {bool growable = false,}) {
|
||||
final result = <CreateAlbumDto>[];
|
||||
if (json is List && json.isNotEmpty) {
|
||||
for (final row in json) {
|
||||
@ -110,12 +110,10 @@ class CreateAlbumDto {
|
||||
static Map<String, List<CreateAlbumDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
||||
final map = <String, List<CreateAlbumDto>>{};
|
||||
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 = CreateAlbumDto.listFromJson(entry.value, growable: growable,);
|
||||
if (value != null) {
|
||||
map[entry.key] = value;
|
||||
}
|
||||
map[entry.key] = CreateAlbumDto.listFromJson(entry.value, growable: growable,);
|
||||
}
|
||||
}
|
||||
return map;
|
||||
|
Reference in New Issue
Block a user