ArrayCountryModel.fromJson constructor

ArrayCountryModel.fromJson(
  1. dynamic json
)

Implementation

ArrayCountryModel.fromJson(dynamic json) {
  if (json['list'] != null) {
    list = [];
    json['list'].forEach((v) {
      list?.add(CountryModel.fromJson(v));
    });
  }
}