AlternativeVideo.fromJson constructor
Parses a AlternativeVideo from TDLib JSON.
Implementation
factory AlternativeVideo.fromJson(Map<String, dynamic> json) =>
AlternativeVideo(
id: _readInt(json['id']),
width: _readInt(json['width']),
height: _readInt(json['height']),
codec: _readString(json['codec']),
hlsFile: _readObject(json['hls_file'], File.fromJson),
video: _readObject(json['video'], File.fromJson),
);