CountryModel.fromJson constructor

CountryModel.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory CountryModel.fromJson(Map<String, dynamic> json){
  return CountryModel(
      id: json['id'] as String,
      sortName: json['sortname'] as String,
      name: json['name'] as String,
      phoneCode: json['phonecode'] as String
  );
}