LinkPreviewTypeEmbeddedVideoPlayer.fromJson constructor
Parses a LinkPreviewTypeEmbeddedVideoPlayer from TDLib JSON.
Implementation
factory LinkPreviewTypeEmbeddedVideoPlayer.fromJson(
Map<String, dynamic> json,
) => LinkPreviewTypeEmbeddedVideoPlayer(
url: _readString(json['url']),
video: _readOptional(json['video'], Video.fromJson),
thumbnail: _readOptional(json['thumbnail'], Photo.fromJson),
duration: _readInt(json['duration']),
width: _readInt(json['width']),
height: _readInt(json['height']),
);