MessageAnimation.fromJson constructor

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

Parse from a json

Implementation

factory MessageAnimation.fromJson(Map<String, dynamic> json) =>
    MessageAnimation(
      animation: Animation.fromJson(json['animation']),
      caption: FormattedText.fromJson(json['caption']),
      hasSpoiler: json['has_spoiler'],
      isSecret: json['is_secret'],
    );