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

@ -41,10 +41,10 @@ class ActivityCreateDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is ActivityCreateDto && bool operator ==(Object other) => identical(this, other) || other is ActivityCreateDto &&
other.albumId == albumId && other.albumId == albumId &&
other.assetId == assetId && other.assetId == assetId &&
other.comment == comment && other.comment == comment &&
other.type == type; other.type == type;
@override @override
int get hashCode => int get hashCode =>

View File

@ -35,12 +35,12 @@ class ActivityResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is ActivityResponseDto && bool operator ==(Object other) => identical(this, other) || other is ActivityResponseDto &&
other.assetId == assetId && other.assetId == assetId &&
other.comment == comment && other.comment == comment &&
other.createdAt == createdAt && other.createdAt == createdAt &&
other.id == id && other.id == id &&
other.type == type && other.type == type &&
other.user == user; other.user == user;
@override @override
int get hashCode => int get hashCode =>
@ -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 ActivityStatisticsResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is ActivityStatisticsResponseDto && bool operator ==(Object other) => identical(this, other) || other is ActivityStatisticsResponseDto &&
other.comments == comments; other.comments == comments;
@override @override
int get hashCode => int get hashCode =>

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

@ -26,9 +26,9 @@ class AlbumCountResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AlbumCountResponseDto && bool operator ==(Object other) => identical(this, other) || other is AlbumCountResponseDto &&
other.notShared == notShared && other.notShared == notShared &&
other.owned == owned && other.owned == owned &&
other.shared == shared; other.shared == shared;
@override @override
int get hashCode => int get hashCode =>

View File

@ -86,23 +86,23 @@ class AlbumResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AlbumResponseDto && bool operator ==(Object other) => identical(this, other) || other is 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 &&
other.hasSharedLink == hasSharedLink && other.hasSharedLink == hasSharedLink &&
other.id == id && other.id == id &&
other.isActivityEnabled == isActivityEnabled && other.isActivityEnabled == isActivityEnabled &&
other.lastModifiedAssetTimestamp == lastModifiedAssetTimestamp && other.lastModifiedAssetTimestamp == lastModifiedAssetTimestamp &&
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;
@override @override
int get hashCode => int get hashCode =>
@ -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

@ -53,18 +53,18 @@ class AllJobStatusResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AllJobStatusResponseDto && bool operator ==(Object other) => identical(this, other) || other is AllJobStatusResponseDto &&
other.backgroundTask == backgroundTask && other.backgroundTask == backgroundTask &&
other.faceDetection == faceDetection && other.faceDetection == faceDetection &&
other.facialRecognition == facialRecognition && other.facialRecognition == facialRecognition &&
other.library_ == library_ && other.library_ == library_ &&
other.metadataExtraction == metadataExtraction && other.metadataExtraction == metadataExtraction &&
other.migration == migration && other.migration == migration &&
other.search == search && other.search == search &&
other.sidecar == sidecar && other.sidecar == sidecar &&
other.smartSearch == smartSearch && other.smartSearch == smartSearch &&
other.storageTemplateMigration == storageTemplateMigration && other.storageTemplateMigration == storageTemplateMigration &&
other.thumbnailGeneration == thumbnailGeneration && other.thumbnailGeneration == thumbnailGeneration &&
other.videoConversion == videoConversion; other.videoConversion == videoConversion;
@override @override
int get hashCode => int get hashCode =>

View File

@ -26,7 +26,7 @@ class APIKeyCreateDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is APIKeyCreateDto && bool operator ==(Object other) => identical(this, other) || other is APIKeyCreateDto &&
other.name == name; other.name == name;
@override @override
int get hashCode => int get hashCode =>

View File

@ -23,8 +23,8 @@ class APIKeyCreateResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is APIKeyCreateResponseDto && bool operator ==(Object other) => identical(this, other) || other is APIKeyCreateResponseDto &&
other.apiKey == apiKey && other.apiKey == apiKey &&
other.secret == secret; other.secret == secret;
@override @override
int get hashCode => int get hashCode =>

View File

@ -29,10 +29,10 @@ class APIKeyResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is APIKeyResponseDto && bool operator ==(Object other) => identical(this, other) || other is APIKeyResponseDto &&
other.createdAt == createdAt && other.createdAt == createdAt &&
other.id == id && other.id == id &&
other.name == name && other.name == name &&
other.updatedAt == updatedAt; other.updatedAt == updatedAt;
@override @override
int get hashCode => int get hashCode =>
@ -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

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

View File

@ -29,8 +29,8 @@ 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

@ -83,14 +83,14 @@ 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 &&
other.longitude == longitude && other.longitude == longitude &&
other.removeParent == removeParent && other.removeParent == removeParent &&
other.stackParentId == stackParentId; other.stackParentId == stackParentId;
@override @override
int get hashCode => int get hashCode =>
@ -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

@ -24,8 +24,8 @@ class AssetBulkUploadCheckItem {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AssetBulkUploadCheckItem && bool operator ==(Object other) => identical(this, other) || other is AssetBulkUploadCheckItem &&
other.checksum == checksum && other.checksum == checksum &&
other.id == id; other.id == id;
@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

@ -35,10 +35,10 @@ class AssetBulkUploadCheckResult {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AssetBulkUploadCheckResult && bool operator ==(Object other) => identical(this, other) || other is AssetBulkUploadCheckResult &&
other.action == action && other.action == action &&
other.assetId == assetId && other.assetId == assetId &&
other.id == id && other.id == id &&
other.reason == reason; other.reason == reason;
@override @override
int get hashCode => int get hashCode =>
@ -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

@ -41,14 +41,14 @@ class AssetFaceResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AssetFaceResponseDto && bool operator ==(Object other) => identical(this, other) || other is AssetFaceResponseDto &&
other.boundingBoxX1 == boundingBoxX1 && other.boundingBoxX1 == boundingBoxX1 &&
other.boundingBoxX2 == boundingBoxX2 && other.boundingBoxX2 == boundingBoxX2 &&
other.boundingBoxY1 == boundingBoxY1 && other.boundingBoxY1 == boundingBoxY1 &&
other.boundingBoxY2 == boundingBoxY2 && other.boundingBoxY2 == boundingBoxY2 &&
other.id == id && other.id == id &&
other.imageHeight == imageHeight && other.imageHeight == imageHeight &&
other.imageWidth == imageWidth && other.imageWidth == imageWidth &&
other.person == person; other.person == person;
@override @override
int get hashCode => int get hashCode =>

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

@ -23,8 +23,8 @@ class AssetFaceUpdateItem {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AssetFaceUpdateItem && bool operator ==(Object other) => identical(this, other) || other is AssetFaceUpdateItem &&
other.assetId == assetId && other.assetId == assetId &&
other.personId == personId; other.personId == personId;
@override @override
int get hashCode => int get hashCode =>

View File

@ -38,13 +38,13 @@ class AssetFaceWithoutPersonResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AssetFaceWithoutPersonResponseDto && bool operator ==(Object other) => identical(this, other) || other is AssetFaceWithoutPersonResponseDto &&
other.boundingBoxX1 == boundingBoxX1 && other.boundingBoxX1 == boundingBoxX1 &&
other.boundingBoxX2 == boundingBoxX2 && other.boundingBoxX2 == boundingBoxX2 &&
other.boundingBoxY1 == boundingBoxY1 && other.boundingBoxY1 == boundingBoxY1 &&
other.boundingBoxY2 == boundingBoxY2 && other.boundingBoxY2 == boundingBoxY2 &&
other.id == id && other.id == id &&
other.imageHeight == imageHeight && other.imageHeight == imageHeight &&
other.imageWidth == imageWidth; other.imageWidth == imageWidth;
@override @override
int get hashCode => int get hashCode =>

View File

@ -23,8 +23,8 @@ class AssetFileUploadResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AssetFileUploadResponseDto && bool operator ==(Object other) => identical(this, other) || other is AssetFileUploadResponseDto &&
other.duplicate == duplicate && other.duplicate == duplicate &&
other.id == id; other.id == id;
@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

@ -26,9 +26,9 @@ class AssetIdsResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AssetIdsResponseDto && bool operator ==(Object other) => identical(this, other) || other is AssetIdsResponseDto &&
other.assetId == assetId && other.assetId == assetId &&
other.error == error && other.error == error &&
other.success == success; other.success == success;
@override @override
int get hashCode => int get hashCode =>
@ -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,8 +23,8 @@ 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
int get hashCode => int get hashCode =>
@ -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

@ -132,38 +132,38 @@ class AssetResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AssetResponseDto && bool operator ==(Object other) => identical(this, other) || other is AssetResponseDto &&
other.checksum == checksum && other.checksum == checksum &&
other.deviceAssetId == deviceAssetId && other.deviceAssetId == deviceAssetId &&
other.deviceId == deviceId && other.deviceId == deviceId &&
other.duration == duration && other.duration == duration &&
other.exifInfo == exifInfo && other.exifInfo == exifInfo &&
other.fileCreatedAt == fileCreatedAt && other.fileCreatedAt == fileCreatedAt &&
other.fileModifiedAt == fileModifiedAt && other.fileModifiedAt == fileModifiedAt &&
other.hasMetadata == hasMetadata && other.hasMetadata == hasMetadata &&
other.id == id && other.id == id &&
other.isArchived == isArchived && other.isArchived == isArchived &&
other.isExternal == isExternal && other.isExternal == isExternal &&
other.isFavorite == isFavorite && other.isFavorite == isFavorite &&
other.isOffline == isOffline && other.isOffline == isOffline &&
other.isReadOnly == isReadOnly && other.isReadOnly == isReadOnly &&
other.isTrashed == isTrashed && other.isTrashed == isTrashed &&
other.libraryId == libraryId && other.libraryId == libraryId &&
other.livePhotoVideoId == livePhotoVideoId && other.livePhotoVideoId == livePhotoVideoId &&
other.localDateTime == localDateTime && other.localDateTime == localDateTime &&
other.originalFileName == originalFileName && other.originalFileName == originalFileName &&
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;
@override @override
int get hashCode => int get hashCode =>
@ -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

@ -26,9 +26,9 @@ class AssetStatsResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AssetStatsResponseDto && bool operator ==(Object other) => identical(this, other) || other is AssetStatsResponseDto &&
other.images == images && other.images == images &&
other.total == total && other.total == total &&
other.videos == videos; other.videos == videos;
@override @override
int get hashCode => int get hashCode =>

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,8 +23,8 @@ 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
int get hashCode => int get hashCode =>
@ -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

@ -35,12 +35,12 @@ class AuthDeviceResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is AuthDeviceResponseDto && bool operator ==(Object other) => identical(this, other) || other is AuthDeviceResponseDto &&
other.createdAt == createdAt && other.createdAt == createdAt &&
other.current == current && other.current == current &&
other.deviceOS == deviceOS && other.deviceOS == deviceOS &&
other.deviceType == deviceType && other.deviceType == deviceType &&
other.id == id && other.id == id &&
other.updatedAt == updatedAt; other.updatedAt == updatedAt;
@override @override
int get hashCode => int get hashCode =>

View File

@ -26,9 +26,9 @@ class BulkIdResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is BulkIdResponseDto && bool operator ==(Object other) => identical(this, other) || other is BulkIdResponseDto &&
other.error == error && other.error == error &&
other.id == id && other.id == id &&
other.success == success; other.success == success;
@override @override
int get hashCode => int get hashCode =>
@ -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,8 +23,8 @@ class ChangePasswordDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is ChangePasswordDto && bool operator ==(Object other) => identical(this, other) || other is ChangePasswordDto &&
other.newPassword == newPassword && other.newPassword == newPassword &&
other.password == password; other.password == password;
@override @override
int get hashCode => int get hashCode =>

View File

@ -23,8 +23,8 @@ 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
int get hashCode => int get hashCode =>
@ -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

@ -41,10 +41,10 @@ class CLIPConfig {
@override @override
bool operator ==(Object other) => identical(this, other) || other is CLIPConfig && bool operator ==(Object other) => identical(this, other) || other is CLIPConfig &&
other.enabled == enabled && other.enabled == enabled &&
other.mode == mode && other.mode == mode &&
other.modelName == modelName && other.modelName == modelName &&
other.modelType == modelType; other.modelType == modelType;
@override @override
int get hashCode => int get hashCode =>

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

@ -35,10 +35,10 @@ 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,11 +44,11 @@ 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;
@override @override
int get hashCode => int get hashCode =>
@ -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,8 +23,8 @@ class CreateProfileImageResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is CreateProfileImageResponseDto && bool operator ==(Object other) => identical(this, other) || other is CreateProfileImageResponseDto &&
other.profileImagePath == profileImagePath && other.profileImagePath == profileImagePath &&
other.userId == userId; other.userId == userId;
@override @override
int get hashCode => int get hashCode =>

View File

@ -23,8 +23,8 @@ class CreateTagDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is CreateTagDto && bool operator ==(Object other) => identical(this, other) || other is CreateTagDto &&
other.name == name && other.name == name &&
other.type == type; other.type == type;
@override @override
int get hashCode => int get hashCode =>

View File

@ -44,13 +44,13 @@ class CreateUserDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is CreateUserDto && bool operator ==(Object other) => identical(this, other) || other is CreateUserDto &&
other.email == email && other.email == email &&
other.externalPath == externalPath && other.externalPath == externalPath &&
other.memoriesEnabled == memoriesEnabled && other.memoriesEnabled == memoriesEnabled &&
other.name == name && other.name == name &&
other.password == password && other.password == password &&
other.quotaSizeInBytes == quotaSizeInBytes && other.quotaSizeInBytes == quotaSizeInBytes &&
other.storageLabel == storageLabel; other.storageLabel == storageLabel;
@override @override
int get hashCode => int get hashCode =>

View File

@ -32,11 +32,11 @@ class CuratedLocationsResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is CuratedLocationsResponseDto && bool operator ==(Object other) => identical(this, other) || other is CuratedLocationsResponseDto &&
other.city == city && other.city == city &&
other.deviceAssetId == deviceAssetId && other.deviceAssetId == deviceAssetId &&
other.deviceId == deviceId && other.deviceId == deviceId &&
other.id == id && other.id == id &&
other.resizePath == resizePath; other.resizePath == resizePath;
@override @override
int get hashCode => int get hashCode =>

View File

@ -32,11 +32,11 @@ class CuratedObjectsResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is CuratedObjectsResponseDto && bool operator ==(Object other) => identical(this, other) || other is CuratedObjectsResponseDto &&
other.deviceAssetId == deviceAssetId && other.deviceAssetId == deviceAssetId &&
other.deviceId == deviceId && other.deviceId == deviceId &&
other.id == id && other.id == id &&
other.object == object && other.object == object &&
other.resizePath == resizePath; other.resizePath == resizePath;
@override @override
int get hashCode => int get hashCode =>

View File

@ -23,8 +23,8 @@ 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
int get hashCode => int get hashCode =>
@ -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

@ -47,10 +47,10 @@ class DownloadInfoDto {
@override @override
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
int get hashCode => int get hashCode =>
@ -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,8 +23,8 @@ 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
int get hashCode => int get hashCode =>

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

@ -80,27 +80,27 @@ class ExifResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is ExifResponseDto && bool operator ==(Object other) => identical(this, other) || other is ExifResponseDto &&
other.city == city && other.city == city &&
other.country == country && other.country == country &&
other.dateTimeOriginal == dateTimeOriginal && other.dateTimeOriginal == dateTimeOriginal &&
other.description == description && other.description == description &&
other.exifImageHeight == exifImageHeight && other.exifImageHeight == exifImageHeight &&
other.exifImageWidth == exifImageWidth && other.exifImageWidth == exifImageWidth &&
other.exposureTime == exposureTime && other.exposureTime == exposureTime &&
other.fNumber == fNumber && other.fNumber == fNumber &&
other.fileSizeInByte == fileSizeInByte && other.fileSizeInByte == fileSizeInByte &&
other.focalLength == focalLength && other.focalLength == focalLength &&
other.iso == iso && other.iso == iso &&
other.latitude == latitude && other.latitude == latitude &&
other.lensModel == lensModel && other.lensModel == lensModel &&
other.longitude == longitude && other.longitude == longitude &&
other.make == make && other.make == make &&
other.model == model && other.model == model &&
other.modifyDate == modifyDate && other.modifyDate == modifyDate &&
other.orientation == orientation && other.orientation == orientation &&
other.projectionType == projectionType && other.projectionType == projectionType &&
other.state == state && other.state == state &&
other.timeZone == timeZone; other.timeZone == timeZone;
@override @override
int get hashCode => int get hashCode =>
@ -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 FaceDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is FaceDto && bool operator ==(Object other) => identical(this, other) || other is FaceDto &&
other.id == id; other.id == id;
@override @override
int get hashCode => int get hashCode =>

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 FileChecksumResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is FileChecksumResponseDto && bool operator ==(Object other) => identical(this, other) || other is FileChecksumResponseDto &&
other.checksum == checksum && other.checksum == checksum &&
other.filename == filename; other.filename == filename;
@override @override
int get hashCode => int get hashCode =>

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

@ -38,11 +38,11 @@ class FileReportItemDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is FileReportItemDto && bool operator ==(Object other) => identical(this, other) || other is FileReportItemDto &&
other.checksum == checksum && other.checksum == checksum &&
other.entityId == entityId && other.entityId == entityId &&
other.entityType == entityType && other.entityType == entityType &&
other.pathType == pathType && other.pathType == pathType &&
other.pathValue == pathValue; other.pathValue == pathValue;
@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

@ -23,8 +23,8 @@ class JobCommandDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is JobCommandDto && bool operator ==(Object other) => identical(this, other) || other is JobCommandDto &&
other.command == command && other.command == command &&
other.force == force; other.force == force;
@override @override
int get hashCode => int get hashCode =>

View File

@ -35,12 +35,12 @@ class JobCountsDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is JobCountsDto && bool operator ==(Object other) => identical(this, other) || other is JobCountsDto &&
other.active == active && other.active == active &&
other.completed == completed && other.completed == completed &&
other.delayed == delayed && other.delayed == delayed &&
other.failed == failed && other.failed == failed &&
other.paused == paused && other.paused == paused &&
other.waiting == waiting; other.waiting == waiting;
@override @override
int get hashCode => int get hashCode =>

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

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

View File

@ -23,8 +23,8 @@ class JobStatusDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is JobStatusDto && bool operator ==(Object other) => identical(this, other) || other is JobStatusDto &&
other.jobCounts == jobCounts && other.jobCounts == jobCounts &&
other.queueStatus == queueStatus; other.queueStatus == queueStatus;
@override @override
int get hashCode => int get hashCode =>

View File

@ -47,16 +47,16 @@ class LibraryResponseDto {
@override @override
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 &&
other.type == type && other.type == type &&
other.updatedAt == updatedAt; other.updatedAt == updatedAt;
@override @override
int get hashCode => int get hashCode =>
@ -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

@ -29,10 +29,10 @@ class LibraryStatsResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is LibraryStatsResponseDto && bool operator ==(Object other) => identical(this, other) || other is LibraryStatsResponseDto &&
other.photos == photos && other.photos == photos &&
other.total == total && other.total == total &&
other.usage == usage && other.usage == usage &&
other.videos == videos; other.videos == videos;
@override @override
int get hashCode => int get hashCode =>

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

@ -23,8 +23,8 @@ class LoginCredentialDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is LoginCredentialDto && bool operator ==(Object other) => identical(this, other) || other is LoginCredentialDto &&
other.email == email && other.email == email &&
other.password == password; other.password == password;
@override @override
int get hashCode => int get hashCode =>

View File

@ -38,13 +38,13 @@ class LoginResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is LoginResponseDto && bool operator ==(Object other) => identical(this, other) || other is LoginResponseDto &&
other.accessToken == accessToken && other.accessToken == accessToken &&
other.isAdmin == isAdmin && other.isAdmin == isAdmin &&
other.name == name && other.name == name &&
other.profileImagePath == profileImagePath && other.profileImagePath == profileImagePath &&
other.shouldChangePassword == shouldChangePassword && other.shouldChangePassword == shouldChangePassword &&
other.userEmail == userEmail && other.userEmail == userEmail &&
other.userId == userId; other.userId == userId;
@override @override
int get hashCode => int get hashCode =>

View File

@ -23,8 +23,8 @@ class LogoutResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is LogoutResponseDto && bool operator ==(Object other) => identical(this, other) || other is LogoutResponseDto &&
other.redirectUri == redirectUri && other.redirectUri == redirectUri &&
other.successful == successful; other.successful == successful;
@override @override
int get hashCode => int get hashCode =>

View File

@ -26,9 +26,9 @@ class MapMarkerResponseDto {
@override @override
bool operator ==(Object other) => identical(this, other) || other is MapMarkerResponseDto && bool operator ==(Object other) => identical(this, other) || other is MapMarkerResponseDto &&
other.id == id && other.id == id &&
other.lat == lat && other.lat == lat &&
other.lon == lon; other.lon == lon;
@override @override
int get hashCode => int get hashCode =>

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,8 +23,8 @@ 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
int get hashCode => int get hashCode =>

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

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

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