CountriesData.fromJson constructor

CountriesData.fromJson(
  1. dynamic json
)

Implementation

CountriesData.fromJson(dynamic json) {
  _id = json['id'];
  _name = json['name'];
}