0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-21 00:52:43 -05:00

fix: open api (#12878)

This commit is contained in:
Daniel Dietzler 2024-09-23 22:08:01 +02:00 committed by GitHub
parent ad33ce5938
commit e41785b1a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -493,6 +493,7 @@ class RandomSearchDto {
/// [value] if it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods
static RandomSearchDto? fromJson(dynamic value) {
upgradeDto(value, "RandomSearchDto");
if (value is Map) {
final json = value.cast<String, dynamic>();