feat :
1 - search location and conditions 2 - parse list in isolate
This commit is contained in:
@@ -39,8 +39,8 @@ class InspectionRemoteDataSourceImp implements InspectionRemoteDataSource {
|
||||
value: value,
|
||||
),
|
||||
headers: {'Content-Type': 'application/json'},
|
||||
fromJsonList: (json) =>
|
||||
json.map((item) => PoultryLocationModel.fromJson(item as Map<String, dynamic>)).toList(),
|
||||
fromJsonListAsync: (json) async =>
|
||||
parseListInIsolate(json, (json) => PoultryLocationModel.fromJson(json)),
|
||||
);
|
||||
|
||||
return res.data;
|
||||
|
||||
Reference in New Issue
Block a user