LinkPreviewTypeVideo.fromJson constructor

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

Parses a LinkPreviewTypeVideo from TDLib JSON.

Implementation

factory LinkPreviewTypeVideo.fromJson(Map<String, dynamic> json) =>
    LinkPreviewTypeVideo(
      video: _readObject(json['video'], Video.fromJson),
      cover: _readOptional(json['cover'], Photo.fromJson),
      startTimestamp: _readInt(json['start_timestamp']),
    );