CountryListResponseModel.fromJson constructor

CountryListResponseModel.fromJson(
  1. 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));
    });
  }
}