InputMessageAnimation.fromJson constructor

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

Parses a InputMessageAnimation from TDLib JSON.

Implementation

factory InputMessageAnimation.fromJson(Map<String, dynamic> json) =>
    InputMessageAnimation(
      animation: _readObject(json['animation'], InputFile.fromJson),
      thumbnail: _readOptional(json['thumbnail'], InputThumbnail.fromJson),
      addedStickerFileIds:
          _readList<int>(json['added_sticker_file_ids'], _readInt),
      duration: _readInt(json['duration']),
      width: _readInt(json['width']),
      height: _readInt(json['height']),
      caption: _readOptional(json['caption'], FormattedText.fromJson),
      hasSpoiler: _readBool(json['has_spoiler']),
    );