getCountries method
Implementation
Future<CountryListResModel?> getCountries() async {
final client = Dio();
try {
final response = await client.get(COUNTRY_API);
if (response.statusCode == 200) {
return CountryListResModel.fromJson(response. data);
}
} catch (error) {
print("error");
}
return null;
}