1
0
mirror of https://github.com/immich-app/immich.git synced 2025-03-11 15:09:45 +02:00

deps: open-api generator (#6655)

* deps: open-api generator

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

30
cli/package-lock.json generated
View File

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

View File

@ -13,7 +13,7 @@
],
"dependencies": {
"@immich/sdk": "file:../open-api/typescript-sdk",
"axios": "^1.6.2",
"axios": "^1.6.7",
"byte-size": "^8.1.1",
"cli-progress": "^3.12.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
## bearer
Authentication schemes defined for the API:
### bearer
- **Type**: HTTP Bearer authentication
## cookie
### cookie
- **Type**: API key
- **API key parameter name**: immich_access_token
- **Location**:
## api_key
### api_key
- **Type**: API key
- **API key parameter name**: x-api-key

View File

@ -14,6 +14,7 @@ import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'package:collection/collection.dart';
import 'package:flutter/foundation.dart';
import 'package:http/http.dart';
import 'package:intl/intl.dart';
@ -207,11 +208,16 @@ part 'model/validate_access_token_response_dto.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 _dateEpochMarker = 'epoch';
const _deepEquality = DeepCollectionEquality();
final _dateFormatter = DateFormat('yyyy-MM-dd');
final _regList = RegExp(r'^List<(.*)>$');
final _regSet = RegExp(r'^Set<(.*)>$');
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);
return (await apiClient.deserializeAsync(responseBody, 'List<ActivityResponseDto>') as List)
.cast<ActivityResponseDto>()
.toList();
.toList(growable: false);
}
return null;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -247,7 +247,7 @@ class UserApi {
final responseBody = await _decodeBodyBytes(response);
return (await apiClient.deserializeAsync(responseBody, 'List<UserResponseDto>') as List)
.cast<UserResponseDto>()
.toList();
.toList(growable: false);
}
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
deserialize(json, targetType, growable: growable);
deserialize(value, targetType, growable: growable);
@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.
targetType = targetType.replaceAll(' ', ''); // ignore: parameter_assignments
// If the expected target type is String, nothing to do...
return targetType == 'String'
? json
: _deserialize(await compute((String j) => jsonDecode(j), json), targetType, growable: growable);
? value
: fromJson(await compute((String j) => json.decode(j), value), targetType, growable: growable);
}
// 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.')
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 {
switch (targetType) {
case 'String':
@ -499,18 +500,18 @@ class ApiClient {
dynamic match;
if (value is List && (match = _regList.firstMatch(targetType)?.group(1)) != null) {
return value
.map<dynamic>((dynamic v) => _deserialize(v, match, growable: growable,))
.map<dynamic>((dynamic v) => fromJson(v, match, growable: growable,))
.toList(growable: growable);
}
if (value is Set && (match = _regSet.firstMatch(targetType)?.group(1)) != null) {
return value
.map<dynamic>((dynamic v) => _deserialize(v, match, growable: growable,))
.map<dynamic>((dynamic v) => fromJson(v, match, growable: growable,))
.toSet();
}
if (value is Map && (match = _regMap.firstMatch(targetType)?.group(1)) != null) {
return Map<String, dynamic>.fromIterables(
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;
}
/// 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.
Future<dynamic> deserializeAsync(DeserializationMessage message) async {
// 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...
return targetType == 'String'
? message.json
: ApiClient._deserialize(
jsonDecode(message.json),
: ApiClient.fromJson(
json.decode(message.json),
targetType,
growable: message.growable,
);

View File

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

View File

@ -84,7 +84,7 @@ class ActivityResponseDto {
return ActivityResponseDto(
assetId: mapValueOfType<String>(json, r'assetId'),
comment: mapValueOfType<String>(json, r'comment'),
createdAt: mapDateTime(json, r'createdAt', '')!,
createdAt: mapDateTime(json, r'createdAt', r'')!,
id: mapValueOfType<String>(json, r'id')!,
type: ActivityResponseDtoTypeEnum.fromJson(json[r'type'])!,
user: UserDto.fromJson(json[r'user'])!,
@ -167,7 +167,7 @@ class ActivityResponseDtoTypeEnum {
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>[];
if (json is List && json.isNotEmpty) {
for (final row in json) {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -156,7 +156,7 @@ class AssetBulkUploadCheckResultActionEnum {
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>[];
if (json is List && json.isNotEmpty) {
for (final row in json) {
@ -230,7 +230,7 @@ class AssetBulkUploadCheckResultReasonEnum {
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>[];
if (json is List && json.isNotEmpty) {
for (final row in json) {

View File

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

View File

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

View File

@ -141,7 +141,7 @@ class AssetIdsResponseDtoErrorEnum {
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>[];
if (json is List && json.isNotEmpty) {
for (final row in json) {

View File

@ -36,7 +36,7 @@ class AssetJobName {
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>[];
if (json is List && json.isNotEmpty) {
for (final row in json) {

View File

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

View File

@ -34,7 +34,7 @@ class AssetOrder {
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>[];
if (json is List && json.isNotEmpty) {
for (final row in json) {

View File

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

View File

@ -38,7 +38,7 @@ class AssetTypeEnum {
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>[];
if (json is List && json.isNotEmpty) {
for (final row in json) {

View File

@ -36,7 +36,7 @@ class AudioCodec {
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>[];
if (json is List && json.isNotEmpty) {
for (final row in json) {

View File

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

View File

@ -143,7 +143,7 @@ class BulkIdResponseDtoErrorEnum {
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>[];
if (json is List && json.isNotEmpty) {
for (final row in json) {

View File

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

View File

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

View File

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

View File

@ -34,7 +34,7 @@ class CLIPMode {
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>[];
if (json is List && json.isNotEmpty) {
for (final row in json) {

View File

@ -34,7 +34,7 @@ class Colorspace {
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>[];
if (json is List && json.isNotEmpty) {
for (final row in json) {

View File

@ -36,7 +36,7 @@ class CQMode {
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>[];
if (json is List && json.isNotEmpty) {
for (final row in json) {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -34,7 +34,7 @@ class EntityType {
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>[];
if (json is List && json.isNotEmpty) {
for (final row in json) {

View File

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

View File

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

View File

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

View File

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

View File

@ -40,7 +40,7 @@ class JobCommand {
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>[];
if (json is List && json.isNotEmpty) {
for (final row in json) {

View File

@ -54,7 +54,7 @@ class JobName {
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>[];
if (json is List && json.isNotEmpty) {
for (final row in json) {

View File

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

View File

@ -34,7 +34,7 @@ class LibraryType {
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>[];
if (json is List && json.isNotEmpty) {
for (final row in json) {

View File

@ -42,7 +42,7 @@ class LogLevel {
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>[];
if (json is List && json.isNotEmpty) {
for (final row in json) {

View File

@ -34,7 +34,7 @@ class MapTheme {
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>[];
if (json is List && json.isNotEmpty) {
for (final row in json) {

View File

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

View File

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

View File

@ -34,7 +34,7 @@ class ModelType {
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>[];
if (json is List && json.isNotEmpty) {
for (final row in json) {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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