LinkPreviewTypeChat.fromJson constructor
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']),
);