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