PollVoteRestrictionReasonCountryRestricted.fromJson constructor

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

Parses a PollVoteRestrictionReasonCountryRestricted from TDLib JSON.

Implementation

factory PollVoteRestrictionReasonCountryRestricted.fromJson(
  Map<String, dynamic> json,
) => PollVoteRestrictionReasonCountryRestricted(
  countryCode: _readString(json['country_code']),
);