mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-12-08 20:29:05 +00:00
chore: regenerate open api (#2374)
This commit is contained in:
10
mobile/openapi/lib/model/api_key_create_dto.dart
generated
10
mobile/openapi/lib/model/api_key_create_dto.dart
generated
@@ -71,7 +71,7 @@ class APIKeyCreateDto {
|
||||
return null;
|
||||
}
|
||||
|
||||
static List<APIKeyCreateDto>? listFromJson(dynamic json, {bool growable = false,}) {
|
||||
static List<APIKeyCreateDto> listFromJson(dynamic json, {bool growable = false,}) {
|
||||
final result = <APIKeyCreateDto>[];
|
||||
if (json is List && json.isNotEmpty) {
|
||||
for (final row in json) {
|
||||
@@ -102,12 +102,10 @@ class APIKeyCreateDto {
|
||||
static Map<String, List<APIKeyCreateDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
||||
final map = <String, List<APIKeyCreateDto>>{};
|
||||
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 = APIKeyCreateDto.listFromJson(entry.value, growable: growable,);
|
||||
if (value != null) {
|
||||
map[entry.key] = value;
|
||||
}
|
||||
map[entry.key] = APIKeyCreateDto.listFromJson(entry.value, growable: growable,);
|
||||
}
|
||||
}
|
||||
return map;
|
||||
|
||||
Reference in New Issue
Block a user