1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-03-01 15:11:21 +01:00

deps: open-api generator (#6655)

* deps: open-api generator

* fix: unused sed/replace
This commit is contained in:
Jason Rasmussen 2024-01-26 11:40:28 -05:00 committed by GitHub
parent 78a2fa8569
commit 2e39243670
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
195 changed files with 1907 additions and 1545 deletions

30
cli/package-lock.json generated
View file

@ -10,7 +10,7 @@
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@immich/sdk": "file:../open-api/typescript-sdk", "@immich/sdk": "file:../open-api/typescript-sdk",
"axios": "^1.6.2", "axios": "^1.6.7",
"byte-size": "^8.1.1", "byte-size": "^8.1.1",
"cli-progress": "^3.12.0", "cli-progress": "^3.12.0",
"commander": "^11.0.0", "commander": "^11.0.0",
@ -51,7 +51,7 @@
"version": "1.92.1", "version": "1.92.1",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"axios": "^0.27.2" "axios": "^1.6.7"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^20.11.0", "@types/node": "^20.11.0",
@ -2577,9 +2577,9 @@
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
}, },
"node_modules/axios": { "node_modules/axios": {
"version": "1.6.5", "version": "1.6.7",
"resolved": "https://registry.npmjs.org/axios/-/axios-1.6.5.tgz", "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.7.tgz",
"integrity": "sha512-Ii012v05KEVuUoFWmMW/UQv9aRIc3ZwkWDcM+h5Il8izZCtRVpDUfwpoFf7eOtajT3QiGR4yDUx7lPqHJULgbg==", "integrity": "sha512-/hDJGff6/c7u0hDkvkGxR/oy6CbCs8ziCsC7SqmhjfozqiJGc8Z11wrv9z9lYfY4K8l+H9TpjcMDX0xOZmx+RA==",
"dependencies": { "dependencies": {
"follow-redirects": "^1.15.4", "follow-redirects": "^1.15.4",
"form-data": "^4.0.0", "form-data": "^4.0.0",
@ -3962,9 +3962,9 @@
"dev": true "dev": true
}, },
"node_modules/follow-redirects": { "node_modules/follow-redirects": {
"version": "1.15.4", "version": "1.15.5",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.4.tgz", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz",
"integrity": "sha512-Cr4D/5wlrb0z9dgERpUL3LrmPKVDsETIJhaCMeDfuFYcqa5bldGV6wBsAN6X/vxlXQtFBMrXdXxdL8CbDTGniw==", "integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==",
"funding": [ "funding": [
{ {
"type": "individual", "type": "individual",
@ -8072,7 +8072,7 @@
"version": "file:../open-api/typescript-sdk", "version": "file:../open-api/typescript-sdk",
"requires": { "requires": {
"@types/node": "^20.11.0", "@types/node": "^20.11.0",
"axios": "^0.27.2", "axios": "^1.6.7",
"typescript": "^5.3.3" "typescript": "^5.3.3"
} }
}, },
@ -9295,9 +9295,9 @@
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
}, },
"axios": { "axios": {
"version": "1.6.5", "version": "1.6.7",
"resolved": "https://registry.npmjs.org/axios/-/axios-1.6.5.tgz", "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.7.tgz",
"integrity": "sha512-Ii012v05KEVuUoFWmMW/UQv9aRIc3ZwkWDcM+h5Il8izZCtRVpDUfwpoFf7eOtajT3QiGR4yDUx7lPqHJULgbg==", "integrity": "sha512-/hDJGff6/c7u0hDkvkGxR/oy6CbCs8ziCsC7SqmhjfozqiJGc8Z11wrv9z9lYfY4K8l+H9TpjcMDX0xOZmx+RA==",
"requires": { "requires": {
"follow-redirects": "^1.15.4", "follow-redirects": "^1.15.4",
"form-data": "^4.0.0", "form-data": "^4.0.0",
@ -10293,9 +10293,9 @@
"dev": true "dev": true
}, },
"follow-redirects": { "follow-redirects": {
"version": "1.15.4", "version": "1.15.5",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.4.tgz", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz",
"integrity": "sha512-Cr4D/5wlrb0z9dgERpUL3LrmPKVDsETIJhaCMeDfuFYcqa5bldGV6wBsAN6X/vxlXQtFBMrXdXxdL8CbDTGniw==" "integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw=="
}, },
"foreground-child": { "foreground-child": {
"version": "3.1.1", "version": "3.1.1",

View file

@ -13,7 +13,7 @@
], ],
"dependencies": { "dependencies": {
"@immich/sdk": "file:../open-api/typescript-sdk", "@immich/sdk": "file:../open-api/typescript-sdk",
"axios": "^1.6.2", "axios": "^1.6.7",
"byte-size": "^8.1.1", "byte-size": "^8.1.1",
"cli-progress": "^3.12.0", "cli-progress": "^3.12.0",
"commander": "^11.0.0", "commander": "^11.0.0",

View file

@ -1 +1 @@
6.5.0 7.2.0

View file

@ -377,17 +377,18 @@ Class | Method | HTTP request | Description
## Documentation For Authorization ## Documentation For Authorization
## bearer Authentication schemes defined for the API:
### bearer
- **Type**: HTTP Bearer authentication - **Type**: HTTP Bearer authentication
## cookie ### cookie
- **Type**: API key - **Type**: API key
- **API key parameter name**: immich_access_token - **API key parameter name**: immich_access_token
- **Location**: - **Location**:
## api_key ### api_key
- **Type**: API key - **Type**: API key
- **API key parameter name**: x-api-key - **API key parameter name**: x-api-key

View file

@ -14,6 +14,7 @@ import 'dart:async';
import 'dart:convert'; import 'dart:convert';
import 'dart:io'; import 'dart:io';
import 'package:collection/collection.dart';
import 'package:flutter/foundation.dart'; import 'package:flutter/foundation.dart';
import 'package:http/http.dart'; import 'package:http/http.dart';
import 'package:intl/intl.dart'; import 'package:intl/intl.dart';
@ -207,11 +208,16 @@ part 'model/validate_access_token_response_dto.dart';
part 'model/video_codec.dart'; part 'model/video_codec.dart';
/// An [ApiClient] instance that uses the default values obtained from
/// the OpenAPI specification file.
var defaultApiClient = ApiClient();
const _delimiters = {'csv': ',', 'ssv': ' ', 'tsv': '\t', 'pipes': '|'}; const _delimiters = {'csv': ',', 'ssv': ' ', 'tsv': '\t', 'pipes': '|'};
const _dateEpochMarker = 'epoch'; const _dateEpochMarker = 'epoch';
const _deepEquality = DeepCollectionEquality();
final _dateFormatter = DateFormat('yyyy-MM-dd'); final _dateFormatter = DateFormat('yyyy-MM-dd');
final _regList = RegExp(r'^List<(.*)>$'); final _regList = RegExp(r'^List<(.*)>$');
final _regSet = RegExp(r'^Set<(.*)>$'); final _regSet = RegExp(r'^Set<(.*)>$');
final _regMap = RegExp(r'^Map<String,(.*)>$'); final _regMap = RegExp(r'^Map<String,(.*)>$');
ApiClient defaultApiClient = ApiClient(); bool _isEpochMarker(String? pattern) => pattern == _dateEpochMarker || pattern == '/$_dateEpochMarker/';

View file

@ -177,7 +177,7 @@ class ActivityApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<ActivityResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<ActivityResponseDto>') as List)
.cast<ActivityResponseDto>() .cast<ActivityResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;

View file

@ -73,7 +73,7 @@ class AlbumApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<BulkIdResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<BulkIdResponseDto>') as List)
.cast<BulkIdResponseDto>() .cast<BulkIdResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;
@ -379,7 +379,7 @@ class AlbumApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<AlbumResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<AlbumResponseDto>') as List)
.cast<AlbumResponseDto>() .cast<AlbumResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;
@ -434,7 +434,7 @@ class AlbumApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<BulkIdResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<BulkIdResponseDto>') as List)
.cast<BulkIdResponseDto>() .cast<BulkIdResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;

View file

@ -189,7 +189,7 @@ class APIKeyApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<APIKeyResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<APIKeyResponseDto>') as List)
.cast<APIKeyResponseDto>() .cast<APIKeyResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;

View file

@ -408,7 +408,7 @@ class AssetApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<AssetResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<AssetResponseDto>') as List)
.cast<AssetResponseDto>() .cast<AssetResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;
@ -464,7 +464,7 @@ class AssetApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<String>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<String>') as List)
.cast<String>() .cast<String>()
.toList(); .toList(growable: false);
} }
return null; return null;
@ -625,7 +625,7 @@ class AssetApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<String>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<String>') as List)
.cast<String>() .cast<String>()
.toList(); .toList(growable: false);
} }
return null; return null;
@ -797,7 +797,7 @@ class AssetApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<CuratedLocationsResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<CuratedLocationsResponseDto>') as List)
.cast<CuratedLocationsResponseDto>() .cast<CuratedLocationsResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;
@ -841,7 +841,7 @@ class AssetApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<CuratedObjectsResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<CuratedObjectsResponseDto>') as List)
.cast<CuratedObjectsResponseDto>() .cast<CuratedObjectsResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;
@ -971,7 +971,7 @@ class AssetApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<MapMarkerResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<MapMarkerResponseDto>') as List)
.cast<MapMarkerResponseDto>() .cast<MapMarkerResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;
@ -1028,7 +1028,7 @@ class AssetApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<MemoryLaneResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<MemoryLaneResponseDto>') as List)
.cast<MemoryLaneResponseDto>() .cast<MemoryLaneResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;
@ -1082,7 +1082,7 @@ class AssetApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<AssetResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<AssetResponseDto>') as List)
.cast<AssetResponseDto>() .cast<AssetResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;
@ -1202,7 +1202,7 @@ class AssetApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<AssetResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<AssetResponseDto>') as List)
.cast<AssetResponseDto>() .cast<AssetResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;
@ -1317,7 +1317,7 @@ class AssetApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<TimeBucketResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<TimeBucketResponseDto>') as List)
.cast<TimeBucketResponseDto>() .cast<TimeBucketResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;
@ -1755,7 +1755,7 @@ class AssetApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<AssetResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<AssetResponseDto>') as List)
.cast<AssetResponseDto>() .cast<AssetResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;

View file

@ -201,7 +201,7 @@ class AuditApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<FileChecksumResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<FileChecksumResponseDto>') as List)
.cast<FileChecksumResponseDto>() .cast<FileChecksumResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;

View file

@ -101,7 +101,7 @@ class AuthenticationApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<AuthDeviceResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<AuthDeviceResponseDto>') as List)
.cast<AuthDeviceResponseDto>() .cast<AuthDeviceResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;

View file

@ -62,7 +62,7 @@ class FaceApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<AssetFaceResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<AssetFaceResponseDto>') as List)
.cast<AssetFaceResponseDto>() .cast<AssetFaceResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;

View file

@ -141,7 +141,7 @@ class LibraryApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<LibraryResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<LibraryResponseDto>') as List)
.cast<LibraryResponseDto>() .cast<LibraryResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;

View file

@ -110,7 +110,7 @@ class PartnerApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<PartnerResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<PartnerResponseDto>') as List)
.cast<PartnerResponseDto>() .cast<PartnerResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;

View file

@ -201,7 +201,7 @@ class PersonApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<AssetResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<AssetResponseDto>') as List)
.cast<AssetResponseDto>() .cast<AssetResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;
@ -352,7 +352,7 @@ class PersonApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<BulkIdResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<BulkIdResponseDto>') as List)
.cast<BulkIdResponseDto>() .cast<BulkIdResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;
@ -407,7 +407,7 @@ class PersonApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<PersonResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<PersonResponseDto>') as List)
.cast<PersonResponseDto>() .cast<PersonResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;
@ -457,7 +457,7 @@ class PersonApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<BulkIdResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<BulkIdResponseDto>') as List)
.cast<BulkIdResponseDto>() .cast<BulkIdResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;

View file

@ -54,7 +54,7 @@ class SearchApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<SearchExploreResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<SearchExploreResponseDto>') as List)
.cast<SearchExploreResponseDto>() .cast<SearchExploreResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;
@ -206,7 +206,7 @@ class SearchApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<PersonResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<PersonResponseDto>') as List)
.cast<PersonResponseDto>() .cast<PersonResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;

View file

@ -73,7 +73,7 @@ class SharedLinkApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<AssetIdsResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<AssetIdsResponseDto>') as List)
.cast<AssetIdsResponseDto>() .cast<AssetIdsResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;
@ -164,7 +164,7 @@ class SharedLinkApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<SharedLinkResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<SharedLinkResponseDto>') as List)
.cast<SharedLinkResponseDto>() .cast<SharedLinkResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;
@ -380,7 +380,7 @@ class SharedLinkApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<AssetIdsResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<AssetIdsResponseDto>') as List)
.cast<AssetIdsResponseDto>() .cast<AssetIdsResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;

View file

@ -141,7 +141,7 @@ class TagApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<TagResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<TagResponseDto>') as List)
.cast<TagResponseDto>() .cast<TagResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;
@ -192,7 +192,7 @@ class TagApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<AssetResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<AssetResponseDto>') as List)
.cast<AssetResponseDto>() .cast<AssetResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;
@ -295,7 +295,7 @@ class TagApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<AssetIdsResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<AssetIdsResponseDto>') as List)
.cast<AssetIdsResponseDto>() .cast<AssetIdsResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;
@ -350,7 +350,7 @@ class TagApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<AssetIdsResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<AssetIdsResponseDto>') as List)
.cast<AssetIdsResponseDto>() .cast<AssetIdsResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;

View file

@ -247,7 +247,7 @@ class UserApi {
final responseBody = await _decodeBodyBytes(response); final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<UserResponseDto>') as List) return (await apiClient.deserializeAsync(responseBody, 'List<UserResponseDto>') as List)
.cast<UserResponseDto>() .cast<UserResponseDto>()
.toList(); .toList(growable: false);
} }
return null; return null;

View file

@ -143,19 +143,19 @@ class ApiClient {
); );
} }
Future<dynamic> deserializeAsync(String json, String targetType, {bool growable = false,}) => Future<dynamic> deserializeAsync(String value, String targetType, {bool growable = false,}) =>
// ignore: deprecated_member_use_from_same_package // ignore: deprecated_member_use_from_same_package
deserialize(json, targetType, growable: growable); deserialize(value, targetType, growable: growable);
@Deprecated('Scheduled for removal in OpenAPI Generator 6.x. Use deserializeAsync() instead.') @Deprecated('Scheduled for removal in OpenAPI Generator 6.x. Use deserializeAsync() instead.')
Future<dynamic> deserialize(String json, String targetType, {bool growable = false,}) async { Future<dynamic> deserialize(String value, String targetType, {bool growable = false,}) async {
// Remove all spaces. Necessary for regular expressions as well. // Remove all spaces. Necessary for regular expressions as well.
targetType = targetType.replaceAll(' ', ''); // ignore: parameter_assignments targetType = targetType.replaceAll(' ', ''); // ignore: parameter_assignments
// If the expected target type is String, nothing to do... // If the expected target type is String, nothing to do...
return targetType == 'String' return targetType == 'String'
? json ? value
: _deserialize(await compute((String j) => jsonDecode(j), json), targetType, growable: growable); : fromJson(await compute((String j) => json.decode(j), value), targetType, growable: growable);
} }
// ignore: deprecated_member_use_from_same_package // ignore: deprecated_member_use_from_same_package
@ -164,7 +164,8 @@ class ApiClient {
@Deprecated('Scheduled for removal in OpenAPI Generator 6.x. Use serializeAsync() instead.') @Deprecated('Scheduled for removal in OpenAPI Generator 6.x. Use serializeAsync() instead.')
String serialize(Object? value) => value == null ? '' : json.encode(value); String serialize(Object? value) => value == null ? '' : json.encode(value);
static dynamic _deserialize(dynamic value, String targetType, {bool growable = false}) { /// Returns a native instance of an OpenAPI class matching the [specified type][targetType].
static dynamic fromJson(dynamic value, String targetType, {bool growable = false,}) {
try { try {
switch (targetType) { switch (targetType) {
case 'String': case 'String':
@ -499,18 +500,18 @@ class ApiClient {
dynamic match; dynamic match;
if (value is List && (match = _regList.firstMatch(targetType)?.group(1)) != null) { if (value is List && (match = _regList.firstMatch(targetType)?.group(1)) != null) {
return value return value
.map<dynamic>((dynamic v) => _deserialize(v, match, growable: growable,)) .map<dynamic>((dynamic v) => fromJson(v, match, growable: growable,))
.toList(growable: growable); .toList(growable: growable);
} }
if (value is Set && (match = _regSet.firstMatch(targetType)?.group(1)) != null) { if (value is Set && (match = _regSet.firstMatch(targetType)?.group(1)) != null) {
return value return value
.map<dynamic>((dynamic v) => _deserialize(v, match, growable: growable,)) .map<dynamic>((dynamic v) => fromJson(v, match, growable: growable,))
.toSet(); .toSet();
} }
if (value is Map && (match = _regMap.firstMatch(targetType)?.group(1)) != null) { if (value is Map && (match = _regMap.firstMatch(targetType)?.group(1)) != null) {
return Map<String, dynamic>.fromIterables( return Map<String, dynamic>.fromIterables(
value.keys.cast<String>(), value.keys.cast<String>(),
value.values.map<dynamic>((dynamic v) => _deserialize(v, match, growable: growable,)), value.values.map<dynamic>((dynamic v) => fromJson(v, match, growable: growable,)),
); );
} }
} }
@ -539,6 +540,17 @@ class DeserializationMessage {
final bool growable; final bool growable;
} }
/// Primarily intended for use in an isolate.
Future<dynamic> decodeAsync(DeserializationMessage message) async {
// Remove all spaces. Necessary for regular expressions as well.
final targetType = message.targetType.replaceAll(' ', '');
// If the expected target type is String, nothing to do...
return targetType == 'String'
? message.json
: json.decode(message.json);
}
/// Primarily intended for use in an isolate. /// Primarily intended for use in an isolate.
Future<dynamic> deserializeAsync(DeserializationMessage message) async { Future<dynamic> deserializeAsync(DeserializationMessage message) async {
// Remove all spaces. Necessary for regular expressions as well. // Remove all spaces. Necessary for regular expressions as well.
@ -547,8 +559,8 @@ Future<dynamic> deserializeAsync(DeserializationMessage message) async {
// If the expected target type is String, nothing to do... // If the expected target type is String, nothing to do...
return targetType == 'String' return targetType == 'String'
? message.json ? message.json
: ApiClient._deserialize( : ApiClient.fromJson(
jsonDecode(message.json), json.decode(message.json),
targetType, targetType,
growable: message.growable, growable: message.growable,
); );

View file

@ -168,7 +168,7 @@ DateTime? mapDateTime(dynamic map, String key, [String? pattern]) {
if (value is int) { if (value is int) {
millis = value; millis = value;
} else if (value is String) { } else if (value is String) {
if (pattern == _dateEpochMarker) { if (_isEpochMarker(pattern)) {
millis = int.tryParse(value); millis = int.tryParse(value);
} else { } else {
return DateTime.tryParse(value); return DateTime.tryParse(value);

View file

@ -84,7 +84,7 @@ class ActivityResponseDto {
return ActivityResponseDto( return ActivityResponseDto(
assetId: mapValueOfType<String>(json, r'assetId'), assetId: mapValueOfType<String>(json, r'assetId'),
comment: mapValueOfType<String>(json, r'comment'), comment: mapValueOfType<String>(json, r'comment'),
createdAt: mapDateTime(json, r'createdAt', '')!, createdAt: mapDateTime(json, r'createdAt', r'')!,
id: mapValueOfType<String>(json, r'id')!, id: mapValueOfType<String>(json, r'id')!,
type: ActivityResponseDtoTypeEnum.fromJson(json[r'type'])!, type: ActivityResponseDtoTypeEnum.fromJson(json[r'type'])!,
user: UserDto.fromJson(json[r'user'])!, user: UserDto.fromJson(json[r'user'])!,
@ -167,7 +167,7 @@ class ActivityResponseDtoTypeEnum {
static ActivityResponseDtoTypeEnum? fromJson(dynamic value) => ActivityResponseDtoTypeEnumTypeTransformer().decode(value); static ActivityResponseDtoTypeEnum? fromJson(dynamic value) => ActivityResponseDtoTypeEnumTypeTransformer().decode(value);
static List<ActivityResponseDtoTypeEnum>? listFromJson(dynamic json, {bool growable = false,}) { static List<ActivityResponseDtoTypeEnum> listFromJson(dynamic json, {bool growable = false,}) {
final result = <ActivityResponseDtoTypeEnum>[]; final result = <ActivityResponseDtoTypeEnum>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {

View file

@ -20,7 +20,7 @@ class AddUsersDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AddUsersDto && bool operator ==(Object other) => identical(this, other) || other is AddUsersDto &&
other.sharedUserIds == sharedUserIds; _deepEquality.equals(other.sharedUserIds, sharedUserIds);
@override @override
int get hashCode => int get hashCode =>
@ -44,8 +44,8 @@ class AddUsersDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return AddUsersDto( return AddUsersDto(
sharedUserIds: json[r'sharedUserIds'] is List sharedUserIds: json[r'sharedUserIds'] is Iterable
? (json[r'sharedUserIds'] as List).cast<String>() ? (json[r'sharedUserIds'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
); );
} }

View file

@ -89,7 +89,7 @@ class AlbumResponseDto {
other.albumName == albumName && other.albumName == albumName &&
other.albumThumbnailAssetId == albumThumbnailAssetId && other.albumThumbnailAssetId == albumThumbnailAssetId &&
other.assetCount == assetCount && other.assetCount == assetCount &&
other.assets == assets && _deepEquality.equals(other.assets, assets) &&
other.createdAt == createdAt && other.createdAt == createdAt &&
other.description == description && other.description == description &&
other.endDate == endDate && other.endDate == endDate &&
@ -100,7 +100,7 @@ class AlbumResponseDto {
other.owner == owner && other.owner == owner &&
other.ownerId == ownerId && other.ownerId == ownerId &&
other.shared == shared && other.shared == shared &&
other.sharedUsers == sharedUsers && _deepEquality.equals(other.sharedUsers, sharedUsers) &&
other.startDate == startDate && other.startDate == startDate &&
other.updatedAt == updatedAt; other.updatedAt == updatedAt;
@ -178,19 +178,19 @@ class AlbumResponseDto {
albumThumbnailAssetId: mapValueOfType<String>(json, r'albumThumbnailAssetId'), albumThumbnailAssetId: mapValueOfType<String>(json, r'albumThumbnailAssetId'),
assetCount: mapValueOfType<int>(json, r'assetCount')!, assetCount: mapValueOfType<int>(json, r'assetCount')!,
assets: AssetResponseDto.listFromJson(json[r'assets']), assets: AssetResponseDto.listFromJson(json[r'assets']),
createdAt: mapDateTime(json, r'createdAt', '')!, createdAt: mapDateTime(json, r'createdAt', r'')!,
description: mapValueOfType<String>(json, r'description')!, description: mapValueOfType<String>(json, r'description')!,
endDate: mapDateTime(json, r'endDate', ''), endDate: mapDateTime(json, r'endDate', r''),
hasSharedLink: mapValueOfType<bool>(json, r'hasSharedLink')!, hasSharedLink: mapValueOfType<bool>(json, r'hasSharedLink')!,
id: mapValueOfType<String>(json, r'id')!, id: mapValueOfType<String>(json, r'id')!,
isActivityEnabled: mapValueOfType<bool>(json, r'isActivityEnabled')!, isActivityEnabled: mapValueOfType<bool>(json, r'isActivityEnabled')!,
lastModifiedAssetTimestamp: mapDateTime(json, r'lastModifiedAssetTimestamp', ''), lastModifiedAssetTimestamp: mapDateTime(json, r'lastModifiedAssetTimestamp', r''),
owner: UserResponseDto.fromJson(json[r'owner'])!, owner: UserResponseDto.fromJson(json[r'owner'])!,
ownerId: mapValueOfType<String>(json, r'ownerId')!, ownerId: mapValueOfType<String>(json, r'ownerId')!,
shared: mapValueOfType<bool>(json, r'shared')!, shared: mapValueOfType<bool>(json, r'shared')!,
sharedUsers: UserResponseDto.listFromJson(json[r'sharedUsers']), sharedUsers: UserResponseDto.listFromJson(json[r'sharedUsers']),
startDate: mapDateTime(json, r'startDate', ''), startDate: mapDateTime(json, r'startDate', r''),
updatedAt: mapDateTime(json, r'updatedAt', '')!, updatedAt: mapDateTime(json, r'updatedAt', r'')!,
); );
} }
return null; return null;

View file

@ -62,10 +62,10 @@ class APIKeyResponseDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return APIKeyResponseDto( return APIKeyResponseDto(
createdAt: mapDateTime(json, r'createdAt', '')!, createdAt: mapDateTime(json, r'createdAt', r'')!,
id: mapValueOfType<String>(json, r'id')!, id: mapValueOfType<String>(json, r'id')!,
name: mapValueOfType<String>(json, r'name')!, name: mapValueOfType<String>(json, r'name')!,
updatedAt: mapDateTime(json, r'updatedAt', '')!, updatedAt: mapDateTime(json, r'updatedAt', r'')!,
); );
} }
return null; return null;

View file

@ -30,7 +30,7 @@ class AssetBulkDeleteDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AssetBulkDeleteDto && bool operator ==(Object other) => identical(this, other) || other is AssetBulkDeleteDto &&
other.force == force && other.force == force &&
other.ids == ids; _deepEquality.equals(other.ids, ids);
@override @override
int get hashCode => int get hashCode =>
@ -61,8 +61,8 @@ class AssetBulkDeleteDto {
return AssetBulkDeleteDto( return AssetBulkDeleteDto(
force: mapValueOfType<bool>(json, r'force'), force: mapValueOfType<bool>(json, r'force'),
ids: json[r'ids'] is List ids: json[r'ids'] is Iterable
? (json[r'ids'] as List).cast<String>() ? (json[r'ids'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
); );
} }

View file

@ -84,7 +84,7 @@ class AssetBulkUpdateDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AssetBulkUpdateDto && bool operator ==(Object other) => identical(this, other) || other is AssetBulkUpdateDto &&
other.dateTimeOriginal == dateTimeOriginal && other.dateTimeOriginal == dateTimeOriginal &&
other.ids == ids && _deepEquality.equals(other.ids, ids) &&
other.isArchived == isArchived && other.isArchived == isArchived &&
other.isFavorite == isFavorite && other.isFavorite == isFavorite &&
other.latitude == latitude && other.latitude == latitude &&
@ -157,17 +157,13 @@ class AssetBulkUpdateDto {
return AssetBulkUpdateDto( return AssetBulkUpdateDto(
dateTimeOriginal: mapValueOfType<String>(json, r'dateTimeOriginal'), dateTimeOriginal: mapValueOfType<String>(json, r'dateTimeOriginal'),
ids: json[r'ids'] is List ids: json[r'ids'] is Iterable
? (json[r'ids'] as List).cast<String>() ? (json[r'ids'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
isArchived: mapValueOfType<bool>(json, r'isArchived'), isArchived: mapValueOfType<bool>(json, r'isArchived'),
isFavorite: mapValueOfType<bool>(json, r'isFavorite'), isFavorite: mapValueOfType<bool>(json, r'isFavorite'),
latitude: json[r'latitude'] == null latitude: num.parse('${json[r'latitude']}'),
? null longitude: num.parse('${json[r'longitude']}'),
: num.parse(json[r'latitude'].toString()),
longitude: json[r'longitude'] == null
? null
: num.parse(json[r'longitude'].toString()),
removeParent: mapValueOfType<bool>(json, r'removeParent'), removeParent: mapValueOfType<bool>(json, r'removeParent'),
stackParentId: mapValueOfType<String>(json, r'stackParentId'), stackParentId: mapValueOfType<String>(json, r'stackParentId'),
); );

View file

@ -20,7 +20,7 @@ class AssetBulkUploadCheckDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AssetBulkUploadCheckDto && bool operator ==(Object other) => identical(this, other) || other is AssetBulkUploadCheckDto &&
other.assets == assets; _deepEquality.equals(other.assets, assets);
@override @override
int get hashCode => int get hashCode =>

View file

@ -20,7 +20,7 @@ class AssetBulkUploadCheckResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AssetBulkUploadCheckResponseDto && bool operator ==(Object other) => identical(this, other) || other is AssetBulkUploadCheckResponseDto &&
other.results == results; _deepEquality.equals(other.results, results);
@override @override
int get hashCode => int get hashCode =>

View file

@ -156,7 +156,7 @@ class AssetBulkUploadCheckResultActionEnum {
static AssetBulkUploadCheckResultActionEnum? fromJson(dynamic value) => AssetBulkUploadCheckResultActionEnumTypeTransformer().decode(value); static AssetBulkUploadCheckResultActionEnum? fromJson(dynamic value) => AssetBulkUploadCheckResultActionEnumTypeTransformer().decode(value);
static List<AssetBulkUploadCheckResultActionEnum>? listFromJson(dynamic json, {bool growable = false,}) { static List<AssetBulkUploadCheckResultActionEnum> listFromJson(dynamic json, {bool growable = false,}) {
final result = <AssetBulkUploadCheckResultActionEnum>[]; final result = <AssetBulkUploadCheckResultActionEnum>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {
@ -230,7 +230,7 @@ class AssetBulkUploadCheckResultReasonEnum {
static AssetBulkUploadCheckResultReasonEnum? fromJson(dynamic value) => AssetBulkUploadCheckResultReasonEnumTypeTransformer().decode(value); static AssetBulkUploadCheckResultReasonEnum? fromJson(dynamic value) => AssetBulkUploadCheckResultReasonEnumTypeTransformer().decode(value);
static List<AssetBulkUploadCheckResultReasonEnum>? listFromJson(dynamic json, {bool growable = false,}) { static List<AssetBulkUploadCheckResultReasonEnum> listFromJson(dynamic json, {bool growable = false,}) {
final result = <AssetBulkUploadCheckResultReasonEnum>[]; final result = <AssetBulkUploadCheckResultReasonEnum>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {

View file

@ -20,7 +20,7 @@ class AssetFaceUpdateDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AssetFaceUpdateDto && bool operator ==(Object other) => identical(this, other) || other is AssetFaceUpdateDto &&
other.data == data; _deepEquality.equals(other.data, data);
@override @override
int get hashCode => int get hashCode =>

View file

@ -20,7 +20,7 @@ class AssetIdsDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AssetIdsDto && bool operator ==(Object other) => identical(this, other) || other is AssetIdsDto &&
other.assetIds == assetIds; _deepEquality.equals(other.assetIds, assetIds);
@override @override
int get hashCode => int get hashCode =>
@ -44,8 +44,8 @@ class AssetIdsDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return AssetIdsDto( return AssetIdsDto(
assetIds: json[r'assetIds'] is List assetIds: json[r'assetIds'] is Iterable
? (json[r'assetIds'] as List).cast<String>() ? (json[r'assetIds'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
); );
} }

View file

@ -141,7 +141,7 @@ class AssetIdsResponseDtoErrorEnum {
static AssetIdsResponseDtoErrorEnum? fromJson(dynamic value) => AssetIdsResponseDtoErrorEnumTypeTransformer().decode(value); static AssetIdsResponseDtoErrorEnum? fromJson(dynamic value) => AssetIdsResponseDtoErrorEnumTypeTransformer().decode(value);
static List<AssetIdsResponseDtoErrorEnum>? listFromJson(dynamic json, {bool growable = false,}) { static List<AssetIdsResponseDtoErrorEnum> listFromJson(dynamic json, {bool growable = false,}) {
final result = <AssetIdsResponseDtoErrorEnum>[]; final result = <AssetIdsResponseDtoErrorEnum>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {

View file

@ -36,7 +36,7 @@ class AssetJobName {
static AssetJobName? fromJson(dynamic value) => AssetJobNameTypeTransformer().decode(value); static AssetJobName? fromJson(dynamic value) => AssetJobNameTypeTransformer().decode(value);
static List<AssetJobName>? listFromJson(dynamic json, {bool growable = false,}) { static List<AssetJobName> listFromJson(dynamic json, {bool growable = false,}) {
final result = <AssetJobName>[]; final result = <AssetJobName>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {

View file

@ -23,7 +23,7 @@ class AssetJobsDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AssetJobsDto && bool operator ==(Object other) => identical(this, other) || other is AssetJobsDto &&
other.assetIds == assetIds && _deepEquality.equals(other.assetIds, assetIds) &&
other.name == name; other.name == name;
@override @override
@ -50,8 +50,8 @@ class AssetJobsDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return AssetJobsDto( return AssetJobsDto(
assetIds: json[r'assetIds'] is List assetIds: json[r'assetIds'] is Iterable
? (json[r'assetIds'] as List).cast<String>() ? (json[r'assetIds'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
name: AssetJobName.fromJson(json[r'name'])!, name: AssetJobName.fromJson(json[r'name'])!,
); );

View file

@ -34,7 +34,7 @@ class AssetOrder {
static AssetOrder? fromJson(dynamic value) => AssetOrderTypeTransformer().decode(value); static AssetOrder? fromJson(dynamic value) => AssetOrderTypeTransformer().decode(value);
static List<AssetOrder>? listFromJson(dynamic json, {bool growable = false,}) { static List<AssetOrder> listFromJson(dynamic json, {bool growable = false,}) {
final result = <AssetOrder>[]; final result = <AssetOrder>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {

View file

@ -154,13 +154,13 @@ class AssetResponseDto {
other.originalPath == originalPath && other.originalPath == originalPath &&
other.owner == owner && other.owner == owner &&
other.ownerId == ownerId && other.ownerId == ownerId &&
other.people == people && _deepEquality.equals(other.people, people) &&
other.resized == resized && other.resized == resized &&
other.smartInfo == smartInfo && other.smartInfo == smartInfo &&
other.stack == stack && _deepEquality.equals(other.stack, stack) &&
other.stackCount == stackCount && other.stackCount == stackCount &&
other.stackParentId == stackParentId && other.stackParentId == stackParentId &&
other.tags == tags && _deepEquality.equals(other.tags, tags) &&
other.thumbhash == thumbhash && other.thumbhash == thumbhash &&
other.type == type && other.type == type &&
other.updatedAt == updatedAt; other.updatedAt == updatedAt;
@ -282,8 +282,8 @@ class AssetResponseDto {
deviceId: mapValueOfType<String>(json, r'deviceId')!, deviceId: mapValueOfType<String>(json, r'deviceId')!,
duration: mapValueOfType<String>(json, r'duration')!, duration: mapValueOfType<String>(json, r'duration')!,
exifInfo: ExifResponseDto.fromJson(json[r'exifInfo']), exifInfo: ExifResponseDto.fromJson(json[r'exifInfo']),
fileCreatedAt: mapDateTime(json, r'fileCreatedAt', '')!, fileCreatedAt: mapDateTime(json, r'fileCreatedAt', r'')!,
fileModifiedAt: mapDateTime(json, r'fileModifiedAt', '')!, fileModifiedAt: mapDateTime(json, r'fileModifiedAt', r'')!,
hasMetadata: mapValueOfType<bool>(json, r'hasMetadata')!, hasMetadata: mapValueOfType<bool>(json, r'hasMetadata')!,
id: mapValueOfType<String>(json, r'id')!, id: mapValueOfType<String>(json, r'id')!,
isArchived: mapValueOfType<bool>(json, r'isArchived')!, isArchived: mapValueOfType<bool>(json, r'isArchived')!,
@ -294,7 +294,7 @@ class AssetResponseDto {
isTrashed: mapValueOfType<bool>(json, r'isTrashed')!, isTrashed: mapValueOfType<bool>(json, r'isTrashed')!,
libraryId: mapValueOfType<String>(json, r'libraryId')!, libraryId: mapValueOfType<String>(json, r'libraryId')!,
livePhotoVideoId: mapValueOfType<String>(json, r'livePhotoVideoId'), livePhotoVideoId: mapValueOfType<String>(json, r'livePhotoVideoId'),
localDateTime: mapDateTime(json, r'localDateTime', '')!, localDateTime: mapDateTime(json, r'localDateTime', r'')!,
originalFileName: mapValueOfType<String>(json, r'originalFileName')!, originalFileName: mapValueOfType<String>(json, r'originalFileName')!,
originalPath: mapValueOfType<String>(json, r'originalPath')!, originalPath: mapValueOfType<String>(json, r'originalPath')!,
owner: UserResponseDto.fromJson(json[r'owner']), owner: UserResponseDto.fromJson(json[r'owner']),
@ -308,7 +308,7 @@ class AssetResponseDto {
tags: TagResponseDto.listFromJson(json[r'tags']), tags: TagResponseDto.listFromJson(json[r'tags']),
thumbhash: mapValueOfType<String>(json, r'thumbhash'), thumbhash: mapValueOfType<String>(json, r'thumbhash'),
type: AssetTypeEnum.fromJson(json[r'type'])!, type: AssetTypeEnum.fromJson(json[r'type'])!,
updatedAt: mapDateTime(json, r'updatedAt', '')!, updatedAt: mapDateTime(json, r'updatedAt', r'')!,
); );
} }
return null; return null;

View file

@ -38,7 +38,7 @@ class AssetTypeEnum {
static AssetTypeEnum? fromJson(dynamic value) => AssetTypeEnumTypeTransformer().decode(value); static AssetTypeEnum? fromJson(dynamic value) => AssetTypeEnumTypeTransformer().decode(value);
static List<AssetTypeEnum>? listFromJson(dynamic json, {bool growable = false,}) { static List<AssetTypeEnum> listFromJson(dynamic json, {bool growable = false,}) {
final result = <AssetTypeEnum>[]; final result = <AssetTypeEnum>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {

View file

@ -36,7 +36,7 @@ class AudioCodec {
static AudioCodec? fromJson(dynamic value) => AudioCodecTypeTransformer().decode(value); static AudioCodec? fromJson(dynamic value) => AudioCodecTypeTransformer().decode(value);
static List<AudioCodec>? listFromJson(dynamic json, {bool growable = false,}) { static List<AudioCodec> listFromJson(dynamic json, {bool growable = false,}) {
final result = <AudioCodec>[]; final result = <AudioCodec>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {

View file

@ -23,7 +23,7 @@ class AuditDeletesResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AuditDeletesResponseDto && bool operator ==(Object other) => identical(this, other) || other is AuditDeletesResponseDto &&
other.ids == ids && _deepEquality.equals(other.ids, ids) &&
other.needsFullSync == needsFullSync; other.needsFullSync == needsFullSync;
@override @override
@ -50,8 +50,8 @@ class AuditDeletesResponseDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return AuditDeletesResponseDto( return AuditDeletesResponseDto(
ids: json[r'ids'] is List ids: json[r'ids'] is Iterable
? (json[r'ids'] as List).cast<String>() ? (json[r'ids'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
needsFullSync: mapValueOfType<bool>(json, r'needsFullSync')!, needsFullSync: mapValueOfType<bool>(json, r'needsFullSync')!,
); );

View file

@ -143,7 +143,7 @@ class BulkIdResponseDtoErrorEnum {
static BulkIdResponseDtoErrorEnum? fromJson(dynamic value) => BulkIdResponseDtoErrorEnumTypeTransformer().decode(value); static BulkIdResponseDtoErrorEnum? fromJson(dynamic value) => BulkIdResponseDtoErrorEnumTypeTransformer().decode(value);
static List<BulkIdResponseDtoErrorEnum>? listFromJson(dynamic json, {bool growable = false,}) { static List<BulkIdResponseDtoErrorEnum> listFromJson(dynamic json, {bool growable = false,}) {
final result = <BulkIdResponseDtoErrorEnum>[]; final result = <BulkIdResponseDtoErrorEnum>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {

View file

@ -20,7 +20,7 @@ class BulkIdsDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is BulkIdsDto && bool operator ==(Object other) => identical(this, other) || other is BulkIdsDto &&
other.ids == ids; _deepEquality.equals(other.ids, ids);
@override @override
int get hashCode => int get hashCode =>
@ -44,8 +44,8 @@ class BulkIdsDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return BulkIdsDto( return BulkIdsDto(
ids: json[r'ids'] is List ids: json[r'ids'] is Iterable
? (json[r'ids'] as List).cast<String>() ? (json[r'ids'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
); );
} }

View file

@ -23,7 +23,7 @@ class CheckExistingAssetsDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is CheckExistingAssetsDto && bool operator ==(Object other) => identical(this, other) || other is CheckExistingAssetsDto &&
other.deviceAssetIds == deviceAssetIds && _deepEquality.equals(other.deviceAssetIds, deviceAssetIds) &&
other.deviceId == deviceId; other.deviceId == deviceId;
@override @override
@ -50,8 +50,8 @@ class CheckExistingAssetsDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return CheckExistingAssetsDto( return CheckExistingAssetsDto(
deviceAssetIds: json[r'deviceAssetIds'] is List deviceAssetIds: json[r'deviceAssetIds'] is Iterable
? (json[r'deviceAssetIds'] as List).cast<String>() ? (json[r'deviceAssetIds'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
deviceId: mapValueOfType<String>(json, r'deviceId')!, deviceId: mapValueOfType<String>(json, r'deviceId')!,
); );

View file

@ -20,7 +20,7 @@ class CheckExistingAssetsResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is CheckExistingAssetsResponseDto && bool operator ==(Object other) => identical(this, other) || other is CheckExistingAssetsResponseDto &&
other.existingIds == existingIds; _deepEquality.equals(other.existingIds, existingIds);
@override @override
int get hashCode => int get hashCode =>
@ -44,8 +44,8 @@ class CheckExistingAssetsResponseDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return CheckExistingAssetsResponseDto( return CheckExistingAssetsResponseDto(
existingIds: json[r'existingIds'] is List existingIds: json[r'existingIds'] is Iterable
? (json[r'existingIds'] as List).cast<String>() ? (json[r'existingIds'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
); );
} }

View file

@ -34,7 +34,7 @@ class CLIPMode {
static CLIPMode? fromJson(dynamic value) => CLIPModeTypeTransformer().decode(value); static CLIPMode? fromJson(dynamic value) => CLIPModeTypeTransformer().decode(value);
static List<CLIPMode>? listFromJson(dynamic json, {bool growable = false,}) { static List<CLIPMode> listFromJson(dynamic json, {bool growable = false,}) {
final result = <CLIPMode>[]; final result = <CLIPMode>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {

View file

@ -34,7 +34,7 @@ class Colorspace {
static Colorspace? fromJson(dynamic value) => ColorspaceTypeTransformer().decode(value); static Colorspace? fromJson(dynamic value) => ColorspaceTypeTransformer().decode(value);
static List<Colorspace>? listFromJson(dynamic json, {bool growable = false,}) { static List<Colorspace> listFromJson(dynamic json, {bool growable = false,}) {
final result = <Colorspace>[]; final result = <Colorspace>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {

View file

@ -36,7 +36,7 @@ class CQMode {
static CQMode? fromJson(dynamic value) => CQModeTypeTransformer().decode(value); static CQMode? fromJson(dynamic value) => CQModeTypeTransformer().decode(value);
static List<CQMode>? listFromJson(dynamic json, {bool growable = false,}) { static List<CQMode> listFromJson(dynamic json, {bool growable = false,}) {
final result = <CQMode>[]; final result = <CQMode>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {

View file

@ -36,9 +36,9 @@ class CreateAlbumDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is CreateAlbumDto && bool operator ==(Object other) => identical(this, other) || other is CreateAlbumDto &&
other.albumName == albumName && other.albumName == albumName &&
other.assetIds == assetIds && _deepEquality.equals(other.assetIds, assetIds) &&
other.description == description && other.description == description &&
other.sharedWithUserIds == sharedWithUserIds; _deepEquality.equals(other.sharedWithUserIds, sharedWithUserIds);
@override @override
int get hashCode => int get hashCode =>
@ -73,12 +73,12 @@ class CreateAlbumDto {
return CreateAlbumDto( return CreateAlbumDto(
albumName: mapValueOfType<String>(json, r'albumName')!, albumName: mapValueOfType<String>(json, r'albumName')!,
assetIds: json[r'assetIds'] is List assetIds: json[r'assetIds'] is Iterable
? (json[r'assetIds'] as List).cast<String>() ? (json[r'assetIds'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
description: mapValueOfType<String>(json, r'description'), description: mapValueOfType<String>(json, r'description'),
sharedWithUserIds: json[r'sharedWithUserIds'] is List sharedWithUserIds: json[r'sharedWithUserIds'] is Iterable
? (json[r'sharedWithUserIds'] as List).cast<String>() ? (json[r'sharedWithUserIds'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
); );
} }

View file

@ -44,8 +44,8 @@ class CreateLibraryDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is CreateLibraryDto && bool operator ==(Object other) => identical(this, other) || other is CreateLibraryDto &&
other.exclusionPatterns == exclusionPatterns && _deepEquality.equals(other.exclusionPatterns, exclusionPatterns) &&
other.importPaths == importPaths && _deepEquality.equals(other.importPaths, importPaths) &&
other.isVisible == isVisible && other.isVisible == isVisible &&
other.name == name && other.name == name &&
other.type == type; other.type == type;
@ -88,11 +88,11 @@ class CreateLibraryDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return CreateLibraryDto( return CreateLibraryDto(
exclusionPatterns: json[r'exclusionPatterns'] is List exclusionPatterns: json[r'exclusionPatterns'] is Iterable
? (json[r'exclusionPatterns'] as List).cast<String>() ? (json[r'exclusionPatterns'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
importPaths: json[r'importPaths'] is List importPaths: json[r'importPaths'] is Iterable
? (json[r'importPaths'] as List).cast<String>() ? (json[r'importPaths'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
isVisible: mapValueOfType<bool>(json, r'isVisible'), isVisible: mapValueOfType<bool>(json, r'isVisible'),
name: mapValueOfType<String>(json, r'name'), name: mapValueOfType<String>(json, r'name'),

View file

@ -23,7 +23,7 @@ class DownloadArchiveInfo {
@override @override
bool operator ==(Object other) => identical(this, other) || other is DownloadArchiveInfo && bool operator ==(Object other) => identical(this, other) || other is DownloadArchiveInfo &&
other.assetIds == assetIds && _deepEquality.equals(other.assetIds, assetIds) &&
other.size == size; other.size == size;
@override @override
@ -50,8 +50,8 @@ class DownloadArchiveInfo {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return DownloadArchiveInfo( return DownloadArchiveInfo(
assetIds: json[r'assetIds'] is List assetIds: json[r'assetIds'] is Iterable
? (json[r'assetIds'] as List).cast<String>() ? (json[r'assetIds'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
size: mapValueOfType<int>(json, r'size')!, size: mapValueOfType<int>(json, r'size')!,
); );

View file

@ -49,7 +49,7 @@ class DownloadInfoDto {
bool operator ==(Object other) => identical(this, other) || other is DownloadInfoDto && bool operator ==(Object other) => identical(this, other) || other is DownloadInfoDto &&
other.albumId == albumId && other.albumId == albumId &&
other.archiveSize == archiveSize && other.archiveSize == archiveSize &&
other.assetIds == assetIds && _deepEquality.equals(other.assetIds, assetIds) &&
other.userId == userId; other.userId == userId;
@override @override
@ -94,8 +94,8 @@ class DownloadInfoDto {
return DownloadInfoDto( return DownloadInfoDto(
albumId: mapValueOfType<String>(json, r'albumId'), albumId: mapValueOfType<String>(json, r'albumId'),
archiveSize: mapValueOfType<int>(json, r'archiveSize'), archiveSize: mapValueOfType<int>(json, r'archiveSize'),
assetIds: json[r'assetIds'] is List assetIds: json[r'assetIds'] is Iterable
? (json[r'assetIds'] as List).cast<String>() ? (json[r'assetIds'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
userId: mapValueOfType<String>(json, r'userId'), userId: mapValueOfType<String>(json, r'userId'),
); );

View file

@ -23,7 +23,7 @@ class DownloadResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is DownloadResponseDto && bool operator ==(Object other) => identical(this, other) || other is DownloadResponseDto &&
other.archives == archives && _deepEquality.equals(other.archives, archives) &&
other.totalSize == totalSize; other.totalSize == totalSize;
@override @override

View file

@ -34,7 +34,7 @@ class EntityType {
static EntityType? fromJson(dynamic value) => EntityTypeTypeTransformer().decode(value); static EntityType? fromJson(dynamic value) => EntityTypeTypeTransformer().decode(value);
static List<EntityType>? listFromJson(dynamic json, {bool growable = false,}) { static List<EntityType> listFromJson(dynamic json, {bool growable = false,}) {
final result = <EntityType>[]; final result = <EntityType>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {

View file

@ -250,35 +250,35 @@ class ExifResponseDto {
return ExifResponseDto( return ExifResponseDto(
city: mapValueOfType<String>(json, r'city'), city: mapValueOfType<String>(json, r'city'),
country: mapValueOfType<String>(json, r'country'), country: mapValueOfType<String>(json, r'country'),
dateTimeOriginal: mapDateTime(json, r'dateTimeOriginal', ''), dateTimeOriginal: mapDateTime(json, r'dateTimeOriginal', r''),
description: mapValueOfType<String>(json, r'description'), description: mapValueOfType<String>(json, r'description'),
exifImageHeight: json[r'exifImageHeight'] == null exifImageHeight: json[r'exifImageHeight'] == null
? null ? null
: num.parse(json[r'exifImageHeight'].toString()), : num.parse('${json[r'exifImageHeight']}'),
exifImageWidth: json[r'exifImageWidth'] == null exifImageWidth: json[r'exifImageWidth'] == null
? null ? null
: num.parse(json[r'exifImageWidth'].toString()), : num.parse('${json[r'exifImageWidth']}'),
exposureTime: mapValueOfType<String>(json, r'exposureTime'), exposureTime: mapValueOfType<String>(json, r'exposureTime'),
fNumber: json[r'fNumber'] == null fNumber: json[r'fNumber'] == null
? null ? null
: num.parse(json[r'fNumber'].toString()), : num.parse('${json[r'fNumber']}'),
fileSizeInByte: mapValueOfType<int>(json, r'fileSizeInByte'), fileSizeInByte: mapValueOfType<int>(json, r'fileSizeInByte'),
focalLength: json[r'focalLength'] == null focalLength: json[r'focalLength'] == null
? null ? null
: num.parse(json[r'focalLength'].toString()), : num.parse('${json[r'focalLength']}'),
iso: json[r'iso'] == null iso: json[r'iso'] == null
? null ? null
: num.parse(json[r'iso'].toString()), : num.parse('${json[r'iso']}'),
latitude: json[r'latitude'] == null latitude: json[r'latitude'] == null
? null ? null
: num.parse(json[r'latitude'].toString()), : num.parse('${json[r'latitude']}'),
lensModel: mapValueOfType<String>(json, r'lensModel'), lensModel: mapValueOfType<String>(json, r'lensModel'),
longitude: json[r'longitude'] == null longitude: json[r'longitude'] == null
? null ? null
: num.parse(json[r'longitude'].toString()), : num.parse('${json[r'longitude']}'),
make: mapValueOfType<String>(json, r'make'), make: mapValueOfType<String>(json, r'make'),
model: mapValueOfType<String>(json, r'model'), model: mapValueOfType<String>(json, r'model'),
modifyDate: mapDateTime(json, r'modifyDate', ''), modifyDate: mapDateTime(json, r'modifyDate', r''),
orientation: mapValueOfType<String>(json, r'orientation'), orientation: mapValueOfType<String>(json, r'orientation'),
projectionType: mapValueOfType<String>(json, r'projectionType'), projectionType: mapValueOfType<String>(json, r'projectionType'),
state: mapValueOfType<String>(json, r'state'), state: mapValueOfType<String>(json, r'state'),

View file

@ -20,7 +20,7 @@ class FileChecksumDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is FileChecksumDto && bool operator ==(Object other) => identical(this, other) || other is FileChecksumDto &&
other.filenames == filenames; _deepEquality.equals(other.filenames, filenames);
@override @override
int get hashCode => int get hashCode =>
@ -44,8 +44,8 @@ class FileChecksumDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return FileChecksumDto( return FileChecksumDto(
filenames: json[r'filenames'] is List filenames: json[r'filenames'] is Iterable
? (json[r'filenames'] as List).cast<String>() ? (json[r'filenames'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
); );
} }

View file

@ -23,8 +23,8 @@ class FileReportDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is FileReportDto && bool operator ==(Object other) => identical(this, other) || other is FileReportDto &&
other.extras == extras && _deepEquality.equals(other.extras, extras) &&
other.orphans == orphans; _deepEquality.equals(other.orphans, orphans);
@override @override
int get hashCode => int get hashCode =>
@ -50,8 +50,8 @@ class FileReportDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return FileReportDto( return FileReportDto(
extras: json[r'extras'] is List extras: json[r'extras'] is Iterable
? (json[r'extras'] as List).cast<String>() ? (json[r'extras'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
orphans: FileReportItemDto.listFromJson(json[r'orphans']), orphans: FileReportItemDto.listFromJson(json[r'orphans']),
); );

View file

@ -20,7 +20,7 @@ class FileReportFixDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is FileReportFixDto && bool operator ==(Object other) => identical(this, other) || other is FileReportFixDto &&
other.items == items; _deepEquality.equals(other.items, items);
@override @override
int get hashCode => int get hashCode =>

View file

@ -40,7 +40,7 @@ class JobCommand {
static JobCommand? fromJson(dynamic value) => JobCommandTypeTransformer().decode(value); static JobCommand? fromJson(dynamic value) => JobCommandTypeTransformer().decode(value);
static List<JobCommand>? listFromJson(dynamic json, {bool growable = false,}) { static List<JobCommand> listFromJson(dynamic json, {bool growable = false,}) {
final result = <JobCommand>[]; final result = <JobCommand>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {

View file

@ -54,7 +54,7 @@ class JobName {
static JobName? fromJson(dynamic value) => JobNameTypeTransformer().decode(value); static JobName? fromJson(dynamic value) => JobNameTypeTransformer().decode(value);
static List<JobName>? listFromJson(dynamic json, {bool growable = false,}) { static List<JobName> listFromJson(dynamic json, {bool growable = false,}) {
final result = <JobName>[]; final result = <JobName>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {

View file

@ -49,9 +49,9 @@ class LibraryResponseDto {
bool operator ==(Object other) => identical(this, other) || other is LibraryResponseDto && bool operator ==(Object other) => identical(this, other) || other is LibraryResponseDto &&
other.assetCount == assetCount && other.assetCount == assetCount &&
other.createdAt == createdAt && other.createdAt == createdAt &&
other.exclusionPatterns == exclusionPatterns && _deepEquality.equals(other.exclusionPatterns, exclusionPatterns) &&
other.id == id && other.id == id &&
other.importPaths == importPaths && _deepEquality.equals(other.importPaths, importPaths) &&
other.name == name && other.name == name &&
other.ownerId == ownerId && other.ownerId == ownerId &&
other.refreshedAt == refreshedAt && other.refreshedAt == refreshedAt &&
@ -103,19 +103,19 @@ class LibraryResponseDto {
return LibraryResponseDto( return LibraryResponseDto(
assetCount: mapValueOfType<int>(json, r'assetCount')!, assetCount: mapValueOfType<int>(json, r'assetCount')!,
createdAt: mapDateTime(json, r'createdAt', '')!, createdAt: mapDateTime(json, r'createdAt', r'')!,
exclusionPatterns: json[r'exclusionPatterns'] is List exclusionPatterns: json[r'exclusionPatterns'] is Iterable
? (json[r'exclusionPatterns'] as List).cast<String>() ? (json[r'exclusionPatterns'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
id: mapValueOfType<String>(json, r'id')!, id: mapValueOfType<String>(json, r'id')!,
importPaths: json[r'importPaths'] is List importPaths: json[r'importPaths'] is Iterable
? (json[r'importPaths'] as List).cast<String>() ? (json[r'importPaths'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
name: mapValueOfType<String>(json, r'name')!, name: mapValueOfType<String>(json, r'name')!,
ownerId: mapValueOfType<String>(json, r'ownerId')!, ownerId: mapValueOfType<String>(json, r'ownerId')!,
refreshedAt: mapDateTime(json, r'refreshedAt', ''), refreshedAt: mapDateTime(json, r'refreshedAt', r''),
type: LibraryType.fromJson(json[r'type'])!, type: LibraryType.fromJson(json[r'type'])!,
updatedAt: mapDateTime(json, r'updatedAt', '')!, updatedAt: mapDateTime(json, r'updatedAt', r'')!,
); );
} }
return null; return null;

View file

@ -34,7 +34,7 @@ class LibraryType {
static LibraryType? fromJson(dynamic value) => LibraryTypeTypeTransformer().decode(value); static LibraryType? fromJson(dynamic value) => LibraryTypeTypeTransformer().decode(value);
static List<LibraryType>? listFromJson(dynamic json, {bool growable = false,}) { static List<LibraryType> listFromJson(dynamic json, {bool growable = false,}) {
final result = <LibraryType>[]; final result = <LibraryType>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {

View file

@ -42,7 +42,7 @@ class LogLevel {
static LogLevel? fromJson(dynamic value) => LogLevelTypeTransformer().decode(value); static LogLevel? fromJson(dynamic value) => LogLevelTypeTransformer().decode(value);
static List<LogLevel>? listFromJson(dynamic json, {bool growable = false,}) { static List<LogLevel> listFromJson(dynamic json, {bool growable = false,}) {
final result = <LogLevel>[]; final result = <LogLevel>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {

View file

@ -34,7 +34,7 @@ class MapTheme {
static MapTheme? fromJson(dynamic value) => MapThemeTypeTransformer().decode(value); static MapTheme? fromJson(dynamic value) => MapThemeTypeTransformer().decode(value);
static List<MapTheme>? listFromJson(dynamic json, {bool growable = false,}) { static List<MapTheme> listFromJson(dynamic json, {bool growable = false,}) {
final result = <MapTheme>[]; final result = <MapTheme>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {

View file

@ -23,7 +23,7 @@ class MemoryLaneResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is MemoryLaneResponseDto && bool operator ==(Object other) => identical(this, other) || other is MemoryLaneResponseDto &&
other.assets == assets && _deepEquality.equals(other.assets, assets) &&
other.title == title; other.title == title;
@override @override

View file

@ -20,7 +20,7 @@ class MergePersonDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is MergePersonDto && bool operator ==(Object other) => identical(this, other) || other is MergePersonDto &&
other.ids == ids; _deepEquality.equals(other.ids, ids);
@override @override
int get hashCode => int get hashCode =>
@ -44,8 +44,8 @@ class MergePersonDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return MergePersonDto( return MergePersonDto(
ids: json[r'ids'] is List ids: json[r'ids'] is Iterable
? (json[r'ids'] as List).cast<String>() ? (json[r'ids'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
); );
} }

View file

@ -34,7 +34,7 @@ class ModelType {
static ModelType? fromJson(dynamic value) => ModelTypeTypeTransformer().decode(value); static ModelType? fromJson(dynamic value) => ModelTypeTypeTransformer().decode(value);
static List<ModelType>? listFromJson(dynamic json, {bool growable = false,}) { static List<ModelType> listFromJson(dynamic json, {bool growable = false,}) {
final result = <ModelType>[]; final result = <ModelType>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {

View file

@ -181,8 +181,8 @@ class PartnerResponseDto {
return PartnerResponseDto( return PartnerResponseDto(
avatarColor: UserAvatarColor.fromJson(json[r'avatarColor'])!, avatarColor: UserAvatarColor.fromJson(json[r'avatarColor'])!,
createdAt: mapDateTime(json, r'createdAt', '')!, createdAt: mapDateTime(json, r'createdAt', r'')!,
deletedAt: mapDateTime(json, r'deletedAt', ''), deletedAt: mapDateTime(json, r'deletedAt', r''),
email: mapValueOfType<String>(json, r'email')!, email: mapValueOfType<String>(json, r'email')!,
externalPath: mapValueOfType<String>(json, r'externalPath'), externalPath: mapValueOfType<String>(json, r'externalPath'),
id: mapValueOfType<String>(json, r'id')!, id: mapValueOfType<String>(json, r'id')!,
@ -196,7 +196,7 @@ class PartnerResponseDto {
quotaUsageInBytes: mapValueOfType<int>(json, r'quotaUsageInBytes'), quotaUsageInBytes: mapValueOfType<int>(json, r'quotaUsageInBytes'),
shouldChangePassword: mapValueOfType<bool>(json, r'shouldChangePassword')!, shouldChangePassword: mapValueOfType<bool>(json, r'shouldChangePassword')!,
storageLabel: mapValueOfType<String>(json, r'storageLabel'), storageLabel: mapValueOfType<String>(json, r'storageLabel'),
updatedAt: mapDateTime(json, r'updatedAt', '')!, updatedAt: mapDateTime(json, r'updatedAt', r'')!,
); );
} }
return null; return null;

View file

@ -36,7 +36,7 @@ class PathEntityType {
static PathEntityType? fromJson(dynamic value) => PathEntityTypeTypeTransformer().decode(value); static PathEntityType? fromJson(dynamic value) => PathEntityTypeTypeTransformer().decode(value);
static List<PathEntityType>? listFromJson(dynamic json, {bool growable = false,}) { static List<PathEntityType> listFromJson(dynamic json, {bool growable = false,}) {
final result = <PathEntityType>[]; final result = <PathEntityType>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {

View file

@ -44,7 +44,7 @@ class PathType {
static PathType? fromJson(dynamic value) => PathTypeTypeTransformer().decode(value); static PathType? fromJson(dynamic value) => PathTypeTypeTransformer().decode(value);
static List<PathType>? listFromJson(dynamic json, {bool growable = false,}) { static List<PathType> listFromJson(dynamic json, {bool growable = false,}) {
final result = <PathType>[]; final result = <PathType>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {

View file

@ -26,7 +26,7 @@ class PeopleResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is PeopleResponseDto && bool operator ==(Object other) => identical(this, other) || other is PeopleResponseDto &&
other.people == people && _deepEquality.equals(other.people, people) &&
other.total == total && other.total == total &&
other.visible == visible; other.visible == visible;

View file

@ -20,7 +20,7 @@ class PeopleUpdateDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is PeopleUpdateDto && bool operator ==(Object other) => identical(this, other) || other is PeopleUpdateDto &&
other.people == people; _deepEquality.equals(other.people, people);
@override @override
int get hashCode => int get hashCode =>

View file

@ -107,7 +107,7 @@ class PeopleUpdateItem {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return PeopleUpdateItem( return PeopleUpdateItem(
birthDate: mapDateTime(json, r'birthDate', ''), birthDate: mapDateTime(json, r'birthDate', r''),
featureFaceAssetId: mapValueOfType<String>(json, r'featureFaceAssetId'), featureFaceAssetId: mapValueOfType<String>(json, r'featureFaceAssetId'),
id: mapValueOfType<String>(json, r'id')!, id: mapValueOfType<String>(json, r'id')!,
isHidden: mapValueOfType<bool>(json, r'isHidden'), isHidden: mapValueOfType<bool>(json, r'isHidden'),

View file

@ -72,7 +72,7 @@ class PersonResponseDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return PersonResponseDto( return PersonResponseDto(
birthDate: mapDateTime(json, r'birthDate', ''), birthDate: mapDateTime(json, r'birthDate', r''),
id: mapValueOfType<String>(json, r'id')!, id: mapValueOfType<String>(json, r'id')!,
isHidden: mapValueOfType<bool>(json, r'isHidden')!, isHidden: mapValueOfType<bool>(json, r'isHidden')!,
name: mapValueOfType<String>(json, r'name')!, name: mapValueOfType<String>(json, r'name')!,

View file

@ -100,7 +100,7 @@ class PersonUpdateDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return PersonUpdateDto( return PersonUpdateDto(
birthDate: mapDateTime(json, r'birthDate', ''), birthDate: mapDateTime(json, r'birthDate', r''),
featureFaceAssetId: mapValueOfType<String>(json, r'featureFaceAssetId'), featureFaceAssetId: mapValueOfType<String>(json, r'featureFaceAssetId'),
isHidden: mapValueOfType<bool>(json, r'isHidden'), isHidden: mapValueOfType<bool>(json, r'isHidden'),
name: mapValueOfType<String>(json, r'name'), name: mapValueOfType<String>(json, r'name'),

View file

@ -36,7 +36,7 @@ class PersonWithFacesResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is PersonWithFacesResponseDto && bool operator ==(Object other) => identical(this, other) || other is PersonWithFacesResponseDto &&
other.birthDate == birthDate && other.birthDate == birthDate &&
other.faces == faces && _deepEquality.equals(other.faces, faces) &&
other.id == id && other.id == id &&
other.isHidden == isHidden && other.isHidden == isHidden &&
other.name == name && other.name == name &&
@ -78,7 +78,7 @@ class PersonWithFacesResponseDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return PersonWithFacesResponseDto( return PersonWithFacesResponseDto(
birthDate: mapDateTime(json, r'birthDate', ''), birthDate: mapDateTime(json, r'birthDate', r''),
faces: AssetFaceWithoutPersonResponseDto.listFromJson(json[r'faces']), faces: AssetFaceWithoutPersonResponseDto.listFromJson(json[r'faces']),
id: mapValueOfType<String>(json, r'id')!, id: mapValueOfType<String>(json, r'id')!,
isHidden: mapValueOfType<bool>(json, r'isHidden')!, isHidden: mapValueOfType<bool>(json, r'isHidden')!,

View file

@ -34,7 +34,7 @@ class ReactionLevel {
static ReactionLevel? fromJson(dynamic value) => ReactionLevelTypeTransformer().decode(value); static ReactionLevel? fromJson(dynamic value) => ReactionLevelTypeTransformer().decode(value);
static List<ReactionLevel>? listFromJson(dynamic json, {bool growable = false,}) { static List<ReactionLevel> listFromJson(dynamic json, {bool growable = false,}) {
final result = <ReactionLevel>[]; final result = <ReactionLevel>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {

View file

@ -34,7 +34,7 @@ class ReactionType {
static ReactionType? fromJson(dynamic value) => ReactionTypeTypeTransformer().decode(value); static ReactionType? fromJson(dynamic value) => ReactionTypeTypeTransformer().decode(value);
static List<ReactionType>? listFromJson(dynamic json, {bool growable = false,}) { static List<ReactionType> listFromJson(dynamic json, {bool growable = false,}) {
final result = <ReactionType>[]; final result = <ReactionType>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {

View file

@ -30,8 +30,8 @@ class SearchAlbumResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is SearchAlbumResponseDto && bool operator ==(Object other) => identical(this, other) || other is SearchAlbumResponseDto &&
other.count == count && other.count == count &&
other.facets == facets && _deepEquality.equals(other.facets, facets) &&
other.items == items && _deepEquality.equals(other.items, items) &&
other.total == total; other.total == total;
@override @override

View file

@ -30,8 +30,8 @@ class SearchAssetResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is SearchAssetResponseDto && bool operator ==(Object other) => identical(this, other) || other is SearchAssetResponseDto &&
other.count == count && other.count == count &&
other.facets == facets && _deepEquality.equals(other.facets, facets) &&
other.items == items && _deepEquality.equals(other.items, items) &&
other.total == total; other.total == total;
@override @override

View file

@ -24,7 +24,7 @@ class SearchExploreResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is SearchExploreResponseDto && bool operator ==(Object other) => identical(this, other) || other is SearchExploreResponseDto &&
other.fieldName == fieldName && other.fieldName == fieldName &&
other.items == items; _deepEquality.equals(other.items, items);
@override @override
int get hashCode => int get hashCode =>

View file

@ -23,7 +23,7 @@ class SearchFacetResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is SearchFacetResponseDto && bool operator ==(Object other) => identical(this, other) || other is SearchFacetResponseDto &&
other.counts == counts && _deepEquality.equals(other.counts, counts) &&
other.fieldName == fieldName; other.fieldName == fieldName;
@override @override

View file

@ -26,9 +26,9 @@ class ServerMediaTypesResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is ServerMediaTypesResponseDto && bool operator ==(Object other) => identical(this, other) || other is ServerMediaTypesResponseDto &&
other.image == image && _deepEquality.equals(other.image, image) &&
other.sidecar == sidecar && _deepEquality.equals(other.sidecar, sidecar) &&
other.video == video; _deepEquality.equals(other.video, video);
@override @override
int get hashCode => int get hashCode =>
@ -56,14 +56,14 @@ class ServerMediaTypesResponseDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return ServerMediaTypesResponseDto( return ServerMediaTypesResponseDto(
image: json[r'image'] is List image: json[r'image'] is Iterable
? (json[r'image'] as List).cast<String>() ? (json[r'image'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
sidecar: json[r'sidecar'] is List sidecar: json[r'sidecar'] is Iterable
? (json[r'sidecar'] as List).cast<String>() ? (json[r'sidecar'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
video: json[r'video'] is List video: json[r'video'] is Iterable
? (json[r'video'] as List).cast<String>() ? (json[r'video'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
); );
} }

View file

@ -31,7 +31,7 @@ class ServerStatsResponseDto {
bool operator ==(Object other) => identical(this, other) || other is ServerStatsResponseDto && bool operator ==(Object other) => identical(this, other) || other is ServerStatsResponseDto &&
other.photos == photos && other.photos == photos &&
other.usage == usage && other.usage == usage &&
other.usageByUser == usageByUser && _deepEquality.equals(other.usageByUser, usageByUser) &&
other.videos == videos; other.videos == videos;
@override @override

View file

@ -65,7 +65,7 @@ class SharedLinkCreateDto {
other.albumId == albumId && other.albumId == albumId &&
other.allowDownload == allowDownload && other.allowDownload == allowDownload &&
other.allowUpload == allowUpload && other.allowUpload == allowUpload &&
other.assetIds == assetIds && _deepEquality.equals(other.assetIds, assetIds) &&
other.description == description && other.description == description &&
other.expiresAt == expiresAt && other.expiresAt == expiresAt &&
other.password == password && other.password == password &&
@ -129,11 +129,11 @@ class SharedLinkCreateDto {
albumId: mapValueOfType<String>(json, r'albumId'), albumId: mapValueOfType<String>(json, r'albumId'),
allowDownload: mapValueOfType<bool>(json, r'allowDownload') ?? true, allowDownload: mapValueOfType<bool>(json, r'allowDownload') ?? true,
allowUpload: mapValueOfType<bool>(json, r'allowUpload') ?? false, allowUpload: mapValueOfType<bool>(json, r'allowUpload') ?? false,
assetIds: json[r'assetIds'] is List assetIds: json[r'assetIds'] is Iterable
? (json[r'assetIds'] as List).cast<String>() ? (json[r'assetIds'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
description: mapValueOfType<String>(json, r'description'), description: mapValueOfType<String>(json, r'description'),
expiresAt: mapDateTime(json, r'expiresAt', ''), expiresAt: mapDateTime(json, r'expiresAt', r''),
password: mapValueOfType<String>(json, r'password'), password: mapValueOfType<String>(json, r'password'),
showMetadata: mapValueOfType<bool>(json, r'showMetadata') ?? true, showMetadata: mapValueOfType<bool>(json, r'showMetadata') ?? true,
type: SharedLinkType.fromJson(json[r'type'])!, type: SharedLinkType.fromJson(json[r'type'])!,

View file

@ -149,7 +149,7 @@ class SharedLinkEditDto {
allowUpload: mapValueOfType<bool>(json, r'allowUpload'), allowUpload: mapValueOfType<bool>(json, r'allowUpload'),
changeExpiryTime: mapValueOfType<bool>(json, r'changeExpiryTime'), changeExpiryTime: mapValueOfType<bool>(json, r'changeExpiryTime'),
description: mapValueOfType<String>(json, r'description'), description: mapValueOfType<String>(json, r'description'),
expiresAt: mapDateTime(json, r'expiresAt', ''), expiresAt: mapDateTime(json, r'expiresAt', r''),
password: mapValueOfType<String>(json, r'password'), password: mapValueOfType<String>(json, r'password'),
showMetadata: mapValueOfType<bool>(json, r'showMetadata'), showMetadata: mapValueOfType<bool>(json, r'showMetadata'),
); );

View file

@ -68,7 +68,7 @@ class SharedLinkResponseDto {
other.album == album && other.album == album &&
other.allowDownload == allowDownload && other.allowDownload == allowDownload &&
other.allowUpload == allowUpload && other.allowUpload == allowUpload &&
other.assets == assets && _deepEquality.equals(other.assets, assets) &&
other.createdAt == createdAt && other.createdAt == createdAt &&
other.description == description && other.description == description &&
other.expiresAt == expiresAt && other.expiresAt == expiresAt &&
@ -152,9 +152,9 @@ class SharedLinkResponseDto {
allowDownload: mapValueOfType<bool>(json, r'allowDownload')!, allowDownload: mapValueOfType<bool>(json, r'allowDownload')!,
allowUpload: mapValueOfType<bool>(json, r'allowUpload')!, allowUpload: mapValueOfType<bool>(json, r'allowUpload')!,
assets: AssetResponseDto.listFromJson(json[r'assets']), assets: AssetResponseDto.listFromJson(json[r'assets']),
createdAt: mapDateTime(json, r'createdAt', '')!, createdAt: mapDateTime(json, r'createdAt', r'')!,
description: mapValueOfType<String>(json, r'description'), description: mapValueOfType<String>(json, r'description'),
expiresAt: mapDateTime(json, r'expiresAt', ''), expiresAt: mapDateTime(json, r'expiresAt', r''),
id: mapValueOfType<String>(json, r'id')!, id: mapValueOfType<String>(json, r'id')!,
key: mapValueOfType<String>(json, r'key')!, key: mapValueOfType<String>(json, r'key')!,
password: mapValueOfType<String>(json, r'password'), password: mapValueOfType<String>(json, r'password'),

View file

@ -34,7 +34,7 @@ class SharedLinkType {
static SharedLinkType? fromJson(dynamic value) => SharedLinkTypeTypeTransformer().decode(value); static SharedLinkType? fromJson(dynamic value) => SharedLinkTypeTypeTransformer().decode(value);
static List<SharedLinkType>? listFromJson(dynamic json, {bool growable = false,}) { static List<SharedLinkType> listFromJson(dynamic json, {bool growable = false,}) {
final result = <SharedLinkType>[]; final result = <SharedLinkType>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {

View file

@ -23,8 +23,8 @@ class SmartInfoResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is SmartInfoResponseDto && bool operator ==(Object other) => identical(this, other) || other is SmartInfoResponseDto &&
other.objects == objects && _deepEquality.equals(other.objects, objects) &&
other.tags == tags; _deepEquality.equals(other.tags, tags);
@override @override
int get hashCode => int get hashCode =>
@ -58,11 +58,11 @@ class SmartInfoResponseDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return SmartInfoResponseDto( return SmartInfoResponseDto(
objects: json[r'objects'] is List objects: json[r'objects'] is Iterable
? (json[r'objects'] as List).cast<String>() ? (json[r'objects'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
tags: json[r'tags'] is List tags: json[r'tags'] is Iterable
? (json[r'tags'] as List).cast<String>() ? (json[r'tags'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
); );
} }

View file

@ -41,14 +41,14 @@ class SystemConfigTemplateStorageOptionDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is SystemConfigTemplateStorageOptionDto && bool operator ==(Object other) => identical(this, other) || other is SystemConfigTemplateStorageOptionDto &&
other.dayOptions == dayOptions && _deepEquality.equals(other.dayOptions, dayOptions) &&
other.hourOptions == hourOptions && _deepEquality.equals(other.hourOptions, hourOptions) &&
other.minuteOptions == minuteOptions && _deepEquality.equals(other.minuteOptions, minuteOptions) &&
other.monthOptions == monthOptions && _deepEquality.equals(other.monthOptions, monthOptions) &&
other.presetOptions == presetOptions && _deepEquality.equals(other.presetOptions, presetOptions) &&
other.secondOptions == secondOptions && _deepEquality.equals(other.secondOptions, secondOptions) &&
other.weekOptions == weekOptions && _deepEquality.equals(other.weekOptions, weekOptions) &&
other.yearOptions == yearOptions; _deepEquality.equals(other.yearOptions, yearOptions);
@override @override
int get hashCode => int get hashCode =>
@ -86,29 +86,29 @@ class SystemConfigTemplateStorageOptionDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return SystemConfigTemplateStorageOptionDto( return SystemConfigTemplateStorageOptionDto(
dayOptions: json[r'dayOptions'] is List dayOptions: json[r'dayOptions'] is Iterable
? (json[r'dayOptions'] as List).cast<String>() ? (json[r'dayOptions'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
hourOptions: json[r'hourOptions'] is List hourOptions: json[r'hourOptions'] is Iterable
? (json[r'hourOptions'] as List).cast<String>() ? (json[r'hourOptions'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
minuteOptions: json[r'minuteOptions'] is List minuteOptions: json[r'minuteOptions'] is Iterable
? (json[r'minuteOptions'] as List).cast<String>() ? (json[r'minuteOptions'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
monthOptions: json[r'monthOptions'] is List monthOptions: json[r'monthOptions'] is Iterable
? (json[r'monthOptions'] as List).cast<String>() ? (json[r'monthOptions'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
presetOptions: json[r'presetOptions'] is List presetOptions: json[r'presetOptions'] is Iterable
? (json[r'presetOptions'] as List).cast<String>() ? (json[r'presetOptions'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
secondOptions: json[r'secondOptions'] is List secondOptions: json[r'secondOptions'] is Iterable
? (json[r'secondOptions'] as List).cast<String>() ? (json[r'secondOptions'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
weekOptions: json[r'weekOptions'] is List weekOptions: json[r'weekOptions'] is Iterable
? (json[r'weekOptions'] as List).cast<String>() ? (json[r'weekOptions'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
yearOptions: json[r'yearOptions'] is List yearOptions: json[r'yearOptions'] is Iterable
? (json[r'yearOptions'] as List).cast<String>() ? (json[r'yearOptions'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
); );
} }

View file

@ -36,7 +36,7 @@ class TagTypeEnum {
static TagTypeEnum? fromJson(dynamic value) => TagTypeEnumTypeTransformer().decode(value); static TagTypeEnum? fromJson(dynamic value) => TagTypeEnumTypeTransformer().decode(value);
static List<TagTypeEnum>? listFromJson(dynamic json, {bool growable = false,}) { static List<TagTypeEnum> listFromJson(dynamic json, {bool growable = false,}) {
final result = <TagTypeEnum>[]; final result = <TagTypeEnum>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {

View file

@ -34,7 +34,7 @@ class ThumbnailFormat {
static ThumbnailFormat? fromJson(dynamic value) => ThumbnailFormatTypeTransformer().decode(value); static ThumbnailFormat? fromJson(dynamic value) => ThumbnailFormatTypeTransformer().decode(value);
static List<ThumbnailFormat>? listFromJson(dynamic json, {bool growable = false,}) { static List<ThumbnailFormat> listFromJson(dynamic json, {bool growable = false,}) {
final result = <ThumbnailFormat>[]; final result = <ThumbnailFormat>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {

View file

@ -34,7 +34,7 @@ class TimeBucketSize {
static TimeBucketSize? fromJson(dynamic value) => TimeBucketSizeTypeTransformer().decode(value); static TimeBucketSize? fromJson(dynamic value) => TimeBucketSizeTypeTransformer().decode(value);
static List<TimeBucketSize>? listFromJson(dynamic json, {bool growable = false,}) { static List<TimeBucketSize> listFromJson(dynamic json, {bool growable = false,}) {
final result = <TimeBucketSize>[]; final result = <TimeBucketSize>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {

View file

@ -38,7 +38,7 @@ class ToneMapping {
static ToneMapping? fromJson(dynamic value) => ToneMappingTypeTransformer().decode(value); static ToneMapping? fromJson(dynamic value) => ToneMappingTypeTransformer().decode(value);
static List<ToneMapping>? listFromJson(dynamic json, {bool growable = false,}) { static List<ToneMapping> listFromJson(dynamic json, {bool growable = false,}) {
final result = <ToneMapping>[]; final result = <ToneMapping>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {

View file

@ -40,7 +40,7 @@ class TranscodeHWAccel {
static TranscodeHWAccel? fromJson(dynamic value) => TranscodeHWAccelTypeTransformer().decode(value); static TranscodeHWAccel? fromJson(dynamic value) => TranscodeHWAccelTypeTransformer().decode(value);
static List<TranscodeHWAccel>? listFromJson(dynamic json, {bool growable = false,}) { static List<TranscodeHWAccel> listFromJson(dynamic json, {bool growable = false,}) {
final result = <TranscodeHWAccel>[]; final result = <TranscodeHWAccel>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {

View file

@ -38,7 +38,7 @@ class TranscodePolicy {
static TranscodePolicy? fromJson(dynamic value) => TranscodePolicyTypeTransformer().decode(value); static TranscodePolicy? fromJson(dynamic value) => TranscodePolicyTypeTransformer().decode(value);
static List<TranscodePolicy>? listFromJson(dynamic json, {bool growable = false,}) { static List<TranscodePolicy> listFromJson(dynamic json, {bool growable = false,}) {
final result = <TranscodePolicy>[]; final result = <TranscodePolicy>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {

View file

@ -138,12 +138,8 @@ class UpdateAssetDto {
description: mapValueOfType<String>(json, r'description'), description: mapValueOfType<String>(json, r'description'),
isArchived: mapValueOfType<bool>(json, r'isArchived'), isArchived: mapValueOfType<bool>(json, r'isArchived'),
isFavorite: mapValueOfType<bool>(json, r'isFavorite'), isFavorite: mapValueOfType<bool>(json, r'isFavorite'),
latitude: json[r'latitude'] == null latitude: num.parse('${json[r'latitude']}'),
? null longitude: num.parse('${json[r'longitude']}'),
: num.parse(json[r'latitude'].toString()),
longitude: json[r'longitude'] == null
? null
: num.parse(json[r'longitude'].toString()),
); );
} }
return null; return null;

View file

@ -41,8 +41,8 @@ class UpdateLibraryDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is UpdateLibraryDto && bool operator ==(Object other) => identical(this, other) || other is UpdateLibraryDto &&
other.exclusionPatterns == exclusionPatterns && _deepEquality.equals(other.exclusionPatterns, exclusionPatterns) &&
other.importPaths == importPaths && _deepEquality.equals(other.importPaths, importPaths) &&
other.isVisible == isVisible && other.isVisible == isVisible &&
other.name == name; other.name == name;
@ -82,11 +82,11 @@ class UpdateLibraryDto {
final json = value.cast<String, dynamic>(); final json = value.cast<String, dynamic>();
return UpdateLibraryDto( return UpdateLibraryDto(
exclusionPatterns: json[r'exclusionPatterns'] is List exclusionPatterns: json[r'exclusionPatterns'] is Iterable
? (json[r'exclusionPatterns'] as List).cast<String>() ? (json[r'exclusionPatterns'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
importPaths: json[r'importPaths'] is List importPaths: json[r'importPaths'] is Iterable
? (json[r'importPaths'] as List).cast<String>() ? (json[r'importPaths'] as Iterable).cast<String>().toList(growable: false)
: const [], : const [],
isVisible: mapValueOfType<bool>(json, r'isVisible'), isVisible: mapValueOfType<bool>(json, r'isVisible'),
name: mapValueOfType<String>(json, r'name'), name: mapValueOfType<String>(json, r'name'),

View file

@ -50,7 +50,7 @@ class UserAvatarColor {
static UserAvatarColor? fromJson(dynamic value) => UserAvatarColorTypeTransformer().decode(value); static UserAvatarColor? fromJson(dynamic value) => UserAvatarColorTypeTransformer().decode(value);
static List<UserAvatarColor>? listFromJson(dynamic json, {bool growable = false,}) { static List<UserAvatarColor> listFromJson(dynamic json, {bool growable = false,}) {
final result = <UserAvatarColor>[]; final result = <UserAvatarColor>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {

View file

@ -165,8 +165,8 @@ class UserResponseDto {
return UserResponseDto( return UserResponseDto(
avatarColor: UserAvatarColor.fromJson(json[r'avatarColor'])!, avatarColor: UserAvatarColor.fromJson(json[r'avatarColor'])!,
createdAt: mapDateTime(json, r'createdAt', '')!, createdAt: mapDateTime(json, r'createdAt', r'')!,
deletedAt: mapDateTime(json, r'deletedAt', ''), deletedAt: mapDateTime(json, r'deletedAt', r''),
email: mapValueOfType<String>(json, r'email')!, email: mapValueOfType<String>(json, r'email')!,
externalPath: mapValueOfType<String>(json, r'externalPath'), externalPath: mapValueOfType<String>(json, r'externalPath'),
id: mapValueOfType<String>(json, r'id')!, id: mapValueOfType<String>(json, r'id')!,
@ -179,7 +179,7 @@ class UserResponseDto {
quotaUsageInBytes: mapValueOfType<int>(json, r'quotaUsageInBytes'), quotaUsageInBytes: mapValueOfType<int>(json, r'quotaUsageInBytes'),
shouldChangePassword: mapValueOfType<bool>(json, r'shouldChangePassword')!, shouldChangePassword: mapValueOfType<bool>(json, r'shouldChangePassword')!,
storageLabel: mapValueOfType<String>(json, r'storageLabel'), storageLabel: mapValueOfType<String>(json, r'storageLabel'),
updatedAt: mapDateTime(json, r'updatedAt', '')!, updatedAt: mapDateTime(json, r'updatedAt', r'')!,
); );
} }
return null; return null;

View file

@ -36,7 +36,7 @@ class VideoCodec {
static VideoCodec? fromJson(dynamic value) => VideoCodecTypeTransformer().decode(value); static VideoCodec? fromJson(dynamic value) => VideoCodecTypeTransformer().decode(value);
static List<VideoCodec>? listFromJson(dynamic json, {bool growable = false,}) { static List<VideoCodec> listFromJson(dynamic json, {bool growable = false,}) {
final result = <VideoCodec>[]; final result = <VideoCodec>[];
if (json is List && json.isNotEmpty) { if (json is List && json.isNotEmpty) {
for (final row in json) { for (final row in json) {

Some files were not shown because too many files have changed in this diff Show more