번호 자동 부여 대응 및 API 공통 처리 보강
This commit is contained in:
@@ -20,9 +20,6 @@ class DashboardRepositoryRemote implements DashboardRepository {
|
||||
_summaryPath,
|
||||
options: Options(responseType: ResponseType.json),
|
||||
);
|
||||
final json = (response.data?['data'] as Map<String, dynamic>?) ??
|
||||
response.data ??
|
||||
const <String, dynamic>{};
|
||||
return DashboardSummaryDto.fromJson(json).toEntity();
|
||||
return DashboardSummaryDto.fromJson(_api.unwrapAsMap(response)).toEntity();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user