LinkPreviewTypeChat.fromJson constructor

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

Parses a LinkPreviewTypeChat from TDLib JSON.

Implementation

factory LinkPreviewTypeChat.fromJson(Map<String, dynamic> json) =>
    LinkPreviewTypeChat(
      type: _readObject(json['type'], InviteLinkChatType.fromJson),
      photo: _readOptional(json['photo'], ChatPhoto.fromJson),
      createsJoinRequest: _readBool(json['creates_join_request']),
    );