1
0
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:
Jason Rasmussen
2023-05-03 15:27:57 -04:00
committed by GitHub
parent b6b9f51bd7
commit 91ad584064
80 changed files with 337 additions and 497 deletions

View File

@ -76,13 +76,13 @@ class ServerStatsResponseDto {
photos: mapValueOfType<int>(json, r'photos')!,
videos: mapValueOfType<int>(json, r'videos')!,
usage: mapValueOfType<int>(json, r'usage')!,
usageByUser: UsageByUserDto.listFromJson(json[r'usageByUser'])!,
usageByUser: UsageByUserDto.listFromJson(json[r'usageByUser']),
);
}
return null;
}
static List<ServerStatsResponseDto>? listFromJson(dynamic json, {bool growable = false,}) {
static List<ServerStatsResponseDto> listFromJson(dynamic json, {bool growable = false,}) {
final result = <ServerStatsResponseDto>[];
if (json is List && json.isNotEmpty) {
for (final row in json) {
@ -113,12 +113,10 @@ class ServerStatsResponseDto {
static Map<String, List<ServerStatsResponseDto>> mapListFromJson(dynamic json, {bool growable = false,}) {
final map = <String, List<ServerStatsResponseDto>>{};
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 = ServerStatsResponseDto.listFromJson(entry.value, growable: growable,);
if (value != null) {
map[entry.key] = value;
}
map[entry.key] = ServerStatsResponseDto.listFromJson(entry.value, growable: growable,);
}
}
return map;