chore(mobile): properly patch openapi with custom response dto (#11753)

This commit is contained in:
Alex
2024-08-13 14:39:25 -05:00
committed by GitHub
parent fdf0b16fe3
commit 5ec407b57c
12 changed files with 312 additions and 7 deletions

View File

@@ -166,6 +166,7 @@ class ApiClient {
/// Returns a native instance of an OpenAPI class matching the [specified type][targetType].
static dynamic fromJson(dynamic value, String targetType, {bool growable = false,}) {
upgradeDto(value, targetType);
try {
switch (targetType) {
case 'String':