Countries.fromJson constructor

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

Parses a Countries from TDLib JSON.

Implementation

factory Countries.fromJson(Map<String, dynamic> json) => Countries(
  countries: _readList<CountryInfo>(
    json['countries'],
    (e) => _readObject(e, CountryInfo.fromJson),
  ),
  extra: json['@extra'],
  clientId: _readClientId(json['@client_id']),
);