InputPageBlockAnimation.fromJson constructor

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

Parses a InputPageBlockAnimation from TDLib JSON.

Implementation

factory InputPageBlockAnimation.fromJson(Map<String, dynamic> json) =>
    InputPageBlockAnimation(
      animation: _readObject(json['animation'], InputAnimation.fromJson),
      caption: _readOptional(json['caption'], PageBlockCaption.fromJson),
      hasSpoiler: _readBool(json['has_spoiler']),
    );