mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
formatted all files.
This commit is contained in:
@ -9,9 +9,9 @@ class ProductApi {
|
||||
final response = await HTTPService().get(
|
||||
path: ApiEndpoints.listProducts,
|
||||
expectedResponseModel: (json) {
|
||||
List<dynamic> jsonData = json['data'];
|
||||
final List<dynamic> jsonData = json['data'];
|
||||
|
||||
List<ProductModel> productList = jsonData.map((jsonItem) {
|
||||
final productList = jsonData.map((jsonItem) {
|
||||
return ProductModel.fromMap(jsonItem);
|
||||
}).toList();
|
||||
return productList;
|
||||
|
Reference in New Issue
Block a user