AlternativeVideo.fromJson constructor

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

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),
    );