mirror of
https://github.com/immich-app/immich.git
synced 2025-07-15 20:38:26 +02: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
mobile/openapi/lib/model
11
mobile/openapi/lib/model/queue_status_dto.dart
generated
11
mobile/openapi/lib/model/queue_status_dto.dart
generated
|
@ -49,17 +49,6 @@ class QueueStatusDto {
|
|||
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 "QueueStatusDto[$key]" is missing from JSON.');
|
||||
// assert(json[key] != null, 'Required key "QueueStatusDto[$key]" has a null value in JSON.');
|
||||
});
|
||||
return true;
|
||||
}());
|
||||
|
||||
return QueueStatusDto(
|
||||
isActive: mapValueOfType<bool>(json, r'isActive')!,
|
||||
isPaused: mapValueOfType<bool>(json, r'isPaused')!,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue