InputStoryContentVideo.fromJson constructor

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

Parses a InputStoryContentVideo from TDLib JSON.

Implementation

factory InputStoryContentVideo.fromJson(Map<String, dynamic> json) =>
    InputStoryContentVideo(
      video: _readObject(json['video'], InputFile.fromJson),
      addedStickerFileIds: _readList<int>(
        json['added_sticker_file_ids'],
        _readInt,
      ),
      duration: _readDouble(json['duration']),
      coverFrameTimestamp: _readDouble(json['cover_frame_timestamp']),
      isAnimation: _readBool(json['is_animation']),
    );