Implement tender workflows and dashboard integration
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/push Build encountered an error
This commit is contained in:
@@ -22,11 +22,20 @@ class LikedTendersService {
|
||||
dateTo: requestModel.dateTo,
|
||||
);
|
||||
|
||||
final result = await _networkManager.makeRequest(
|
||||
uri,
|
||||
(json) => LikedTendersResponse.fromJson(json),
|
||||
method: 'GET',
|
||||
);
|
||||
final result = await _networkManager.makeRequest(uri, (json) {
|
||||
// Feedback pagination is returned at the envelope root, while the
|
||||
// legacy app model stores it beside data.feedback.
|
||||
final normalized = Map<String, dynamic>.from(json);
|
||||
final data = normalized['data'];
|
||||
final meta = normalized['meta'];
|
||||
if (data is Map && meta is Map) {
|
||||
normalized['data'] = {
|
||||
...Map<String, dynamic>.from(data),
|
||||
'meta': Map<String, dynamic>.from(meta),
|
||||
};
|
||||
}
|
||||
return LikedTendersResponse.fromJson(normalized);
|
||||
}, method: 'GET');
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user