ChatFolderInviteLinkInfo.fromJson constructor

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

Parses a ChatFolderInviteLinkInfo from TDLib JSON.

Implementation

factory ChatFolderInviteLinkInfo.fromJson(Map<String, dynamic> json) =>
    ChatFolderInviteLinkInfo(
      chatFolderInfo:
          _readObject(json['chat_folder_info'], ChatFolderInfo.fromJson),
      missingChatIds: _readList<int>(json['missing_chat_ids'], _readInt),
      addedChatIds: _readList<int>(json['added_chat_ids'], _readInt),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );