InternalLinkTypePublicChat.fromJson constructor

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

Parses a InternalLinkTypePublicChat from TDLib JSON.

Implementation

factory InternalLinkTypePublicChat.fromJson(Map<String, dynamic> json) =>
    InternalLinkTypePublicChat(
      chatUsername: _readString(json['chat_username']),
      draftText: _readString(json['draft_text']),
      openProfile: _readBool(json['open_profile']),
      unpaidMessagesToken: _readString(json['unpaid_messages_token']),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );