MessagePhoto.fromJson constructor
Parses a MessagePhoto from TDLib JSON.
Implementation
factory MessagePhoto.fromJson(Map<String, dynamic> json) => MessagePhoto(
photo: _readObject(json['photo'], Photo.fromJson),
caption: _readObject(json['caption'], FormattedText.fromJson),
hasSpoiler: _readBool(json['has_spoiler']),
isSecret: _readBool(json['is_secret']),
);