countries property
Implementation
List<Covid19Country> get countries {
List<Covid19Country> list = List();
for (var i in _map['Countries']) {
list.add(Covid19Country(
country: i['Country'],
countryCode: i['CountryCode'],
slug: i['Slug'],
newConfirmed: i['NewConfirmed'],
totalConfirmed: i['TotalConfirmed'],
newDeaths: i['NewDeaths'],
totalDeaths: i['TotalDeaths'],
newRecovered: i['NewRecovered'],
totalRecovered: i['TotalRecovered'],
date: i['Date'],
premium: i['Premium']));
}
return list;
}