refactor(mobile): open api dto upgrade ()

This commit is contained in:
Jason Rasmussen 2024-09-23 15:41:41 -04:00 committed by GitHub
commit ad33ce5938
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
197 changed files with 205 additions and 288 deletions
mobile/openapi/lib/model

View file

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