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'], InputAnimation.fromJson),
      caption: _readOptional(json['caption'], FormattedText.fromJson),
      showCaptionAboveMedia: _readBool(json['show_caption_above_media']),
      hasSpoiler: _readBool(json['has_spoiler']),
    );