InputMessagePhoto.fromJson constructor
Parses a InputMessagePhoto from TDLib JSON.
Implementation
factory InputMessagePhoto.fromJson(Map<String, dynamic> json) =>
InputMessagePhoto(
photo: _readObject(json['photo'], InputPhoto.fromJson),
caption: _readOptional(json['caption'], FormattedText.fromJson),
showCaptionAboveMedia: _readBool(json['show_caption_above_media']),
selfDestructType: _readOptional(
json['self_destruct_type'],
MessageSelfDestructType.fromJson,
),
hasSpoiler: _readBool(json['has_spoiler']),
);