ChatBoostLinkInfo.fromJson constructor

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

Parses a ChatBoostLinkInfo from TDLib JSON.

Implementation

factory ChatBoostLinkInfo.fromJson(Map<String, dynamic> json) =>
    ChatBoostLinkInfo(
      isPublic: _readBool(json['is_public']),
      chatId: _readInt(json['chat_id']),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );