LinkPreviewTypeDirectMessagesChat.fromJson constructor

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

Parses a LinkPreviewTypeDirectMessagesChat from TDLib JSON.

Implementation

factory LinkPreviewTypeDirectMessagesChat.fromJson(
  Map<String, dynamic> json,
) => LinkPreviewTypeDirectMessagesChat(
  photo: _readOptional(json['photo'], ChatPhoto.fromJson),
);