CountryListResponseModel.fromJson constructor
CountryListResponseModel.fromJson(
- dynamic json
Implementation
CountryListResponseModel.fromJson(dynamic json) {
_success = json['success'];
_message = json['message'];
if (json['data'] != null) {
_countriesData = [];
json['data'].forEach((v) {
_countriesData?.add(CountriesData.fromJson(v));
});
}
}