all static method
Implementation
static Future<List<States>> all() async {
List<States> states = [];
List<dynamic> data = await readJsonFile('lib/data/states.json', 'states');
for (int i = 0; i < data.length; i++) {
states.add(States(data[i]['id'], data[i]['name']));
}
return states;
}