Refactor provider and store models to use fromMap method; update associated stores handling in UI
This commit is contained in:
@@ -57,7 +57,7 @@ class StaffRepository {
|
||||
.eq('staff_member_id', staffId);
|
||||
|
||||
return (response as List)
|
||||
.map((item) => StoreModel.fromJson(item['store']))
|
||||
.map((item) => StoreModel.fromMap(item['store']))
|
||||
.toList();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user