toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    "@type": CONSTRUCTOR,
    "video": this.video == null ? null : this.video.toJson(),
    "thumbnail": this.thumbnail == null ? null : this.thumbnail.toJson(),
    "added_sticker_file_ids": this.addedStickerFileIds.map((i) => i).toList(),
    "duration": this.duration,
    "width": this.width,
    "height": this.height,
    "supports_streaming": this.supportsStreaming,
    "caption": this.caption == null ? null : this.caption.toJson(),
    "ttl": this.ttl,
  };
}