CountryResponse.fromJson constructor

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

Implementation

factory CountryResponse.fromJson(Map<String, dynamic> json) =>
    CountryResponse(
      countryCode: json['country'],
      ip: json['ip'],
    );