CountryCode.fromJson constructor

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

Implementation

factory CountryCode.fromJson(Map<String, dynamic> json) {
  return CountryCode(
    name: json['name'],
    code: json['code'],
    dialCode: json['dial_code'],
    flagUri: 'flags/${json['code'].toLowerCase()}.png',
  );
}