mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
chore/remove openapi assertion for dart 2 (#2916)
* chore(server): patch dart openapi assertion 2 * removed usused file
This commit is contained in:
parent
4311d385fc
commit
751922990f
93 changed files with 99 additions and 1102 deletions
15
mobile/openapi/lib/model/update_album_dto.dart
generated
15
mobile/openapi/lib/model/update_album_dto.dart
generated
|
|
@ -52,12 +52,12 @@ class UpdateAlbumDto {
|
|||
if (this.albumName != null) {
|
||||
json[r'albumName'] = this.albumName;
|
||||
} else {
|
||||
// json[r'albumName'] = null;
|
||||
// json[r'albumName'] = null;
|
||||
}
|
||||
if (this.albumThumbnailAssetId != null) {
|
||||
json[r'albumThumbnailAssetId'] = this.albumThumbnailAssetId;
|
||||
} else {
|
||||
// json[r'albumThumbnailAssetId'] = null;
|
||||
// json[r'albumThumbnailAssetId'] = null;
|
||||
}
|
||||
return json;
|
||||
}
|
||||
|
|
@ -69,17 +69,6 @@ class UpdateAlbumDto {
|
|||
if (value is Map) {
|
||||
final json = value.cast<String, dynamic>();
|
||||
|
||||
// Ensure that the map contains the required keys.
|
||||
// Note 1: the values aren't checked for validity beyond being non-null.
|
||||
// Note 2: this code is stripped in release mode!
|
||||
assert(() {
|
||||
requiredKeys.forEach((key) {
|
||||
assert(json.containsKey(key), 'Required key "UpdateAlbumDto[$key]" is missing from JSON.');
|
||||
// assert(json[key] != null, 'Required key "UpdateAlbumDto[$key]" has a null value in JSON.');
|
||||
});
|
||||
return true;
|
||||
}());
|
||||
|
||||
return UpdateAlbumDto(
|
||||
albumName: mapValueOfType<String>(json, r'albumName'),
|
||||
albumThumbnailAssetId: mapValueOfType<String>(json, r'albumThumbnailAssetId'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue