Countries.fromJson constructor

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

Parse from a json

Implementation

factory Countries.fromJson(Map<String, dynamic> json) => Countries(
      countries: List<CountryInfo>.from((json['countries'] ?? [])
          .map((item) => CountryInfo.fromJson(item))
          .toList()),
      extra: json['@extra'],
      clientId: json['@client_id'],
    );