ChatFolderInviteLinkInfo.fromJson constructor

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

Parse from a json

Implementation

factory ChatFolderInviteLinkInfo.fromJson(Map<String, dynamic> json) =>
    ChatFolderInviteLinkInfo(
      chatFolderInfo: ChatFolderInfo.fromJson(json['chat_folder_info']),
      missingChatIds: List<int>.from(
          (json['missing_chat_ids'] ?? []).map((item) => item).toList()),
      addedChatIds: List<int>.from(
          (json['added_chat_ids'] ?? []).map((item) => item).toList()),
      extra: json['@extra'],
      clientId: json['@client_id'],
    );