fix: open api (#12878)

pull/12882/head
Daniel Dietzler 2024-09-23 22:08:01 +07:00 committed by GitHub
parent ad33ce5938
commit e41785b1a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

@ -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>();