ChatFolderInviteLink.fromJson constructor

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

Parses a ChatFolderInviteLink from TDLib JSON.

Implementation

factory ChatFolderInviteLink.fromJson(Map<String, dynamic> json) =>
    ChatFolderInviteLink(
      inviteLink: _readString(json['invite_link']),
      name: _readString(json['name']),
      chatIds: _readList<int>(json['chat_ids'], _readInt),
      extra: json['@extra'],
      clientId: _readClientId(json['@client_id']),
    );