Country.fromJson constructor

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

Implementation

factory Country.fromJson(Map<String, dynamic> json) {
  return new Country(
    json['name'] as String,
    json['flag'] as String,
    json['country_code'] as String,
    json['calling_code'] as String,
  );
}