InputMessageVideo.fromMap constructor

InputMessageVideo.fromMap(
  1. Map<String, dynamic> map
)

Implementation

InputMessageVideo.fromMap(Map<String, dynamic> map) {
  extra = map['@extra'];
  client_id = map['@client_id'];
  if (map['video'] != null) {
    video = TdApiMap.fromMap(map['video']) as InputFile;
  }
  if (map['thumbnail'] != null) {
    thumbnail = TdApiMap.fromMap(map['thumbnail']) as InputThumbnail;
  }
  if (map['added_sticker_file_ids'] != null) {
    added_sticker_file_ids = [];
    for (var someValue in map['added_sticker_file_ids']) {
      added_sticker_file_ids?.add(someValue);
    }
  }
  duration = map['duration'];
  width = map['width'];
  height = map['height'];
  supports_streaming = map['supports_streaming'];
  if (map['caption'] != null) {
    caption = TdApiMap.fromMap(map['caption']) as FormattedText;
  }
  self_destruct_time = map['self_destruct_time'];
  has_spoiler = map['has_spoiler'];
}