ChatFolderInviteLink.fromJson constructor

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

Parse from a json

Implementation

factory ChatFolderInviteLink.fromJson(Map<String, dynamic> json) =>
    ChatFolderInviteLink(
      inviteLink: json['invite_link'],
      name: json['name'],
      chatIds: List<int>.from(
          (json['chat_ids'] ?? []).map((item) => item).toList()),
      extra: json['@extra'],
      clientId: json['@client_id'],
    );