fromJson static method

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

Implementation

static Country fromJson(Map<String, dynamic> json) => Country(
      name: json['name'],
      isoCode: json['isoCode'],
      phoneCode: json['phoneCode'],
      currency: json['currency'],
      flag: json['flag'],
      latitude: json['latitude'],
      longitude: json['longitude'],
    );