InputMessageVideo.fromJson constructor

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

Parse from a json

Implementation

InputMessageVideo.fromJson(Map<String, dynamic> json) {
  this.video = InputFile.fromJson(json['video'] ?? <String, dynamic>{});
  this.thumbnail =
      InputThumbnail.fromJson(json['thumbnail'] ?? <String, dynamic>{});
  this.addedStickerFileIds = List<int>.from(
      (json['added_sticker_file_ids'] ?? []).map((item) => item).toList());
  this.duration = json['duration'];
  this.width = json['width'];
  this.height = json['height'];
  this.supportsStreaming = json['supports_streaming'];
  this.caption =
      FormattedText.fromJson(json['caption'] ?? <String, dynamic>{});
  this.ttl = json['ttl'];
}