UpdateAllowedBotUsernamePremiumSuffixes.fromJson constructor

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

Parses a UpdateAllowedBotUsernamePremiumSuffixes from TDLib JSON.

Implementation

factory UpdateAllowedBotUsernamePremiumSuffixes.fromJson(
  Map<String, dynamic> json,
) => UpdateAllowedBotUsernamePremiumSuffixes(
  suffixes: _readList<String>(json['suffixes'], _readString),
  extra: json['@extra'],
  clientId: _readClientId(json['@client_id']),
);