1 - search location and conditions
2 - parse list in isolate
This commit is contained in:
2025-08-02 11:10:22 +03:30
parent aaa69a94e9
commit 6040ca9f86
10 changed files with 695 additions and 375 deletions

View File

@@ -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;