LinkPreviewTypePhoto.fromJson constructor

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

Parses a LinkPreviewTypePhoto from TDLib JSON.

Implementation

factory LinkPreviewTypePhoto.fromJson(Map<String, dynamic> json) =>
    LinkPreviewTypePhoto(photo: _readObject(json['photo'], Photo.fromJson));