mirror of
https://github.com/immich-app/immich.git
synced 2025-11-24 17:30:43 +09:00
chore/remove openapi assertion for dart 2 (#2916)
* chore(server): patch dart openapi assertion 2 * removed usused file
This commit is contained in:
11
mobile/openapi/lib/model/server_ping_response.dart
generated
11
mobile/openapi/lib/model/server_ping_response.dart
generated
@@ -43,17 +43,6 @@ class ServerPingResponse {
|
||||
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 "ServerPingResponse[$key]" is missing from JSON.');
|
||||
// assert(json[key] != null, 'Required key "ServerPingResponse[$key]" has a null value in JSON.');
|
||||
});
|
||||
return true;
|
||||
}());
|
||||
|
||||
return ServerPingResponse(
|
||||
res: mapValueOfType<String>(json, r'res')!,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user