all static method
Implementation
static Future<List<Zone>> all() async {
List<Zone> zones = [];
List<dynamic> data = jsonDecode(Constant.zones)['zones'];
for (int i = 0; i < data.length; i++) {
zones.add(Zone(data[i]['code'], data[i]['name'], data[i]['stateId']));
}
return zones;
}