PageBlockEmbedded.fromJson constructor
Parses a PageBlockEmbedded from TDLib JSON.
Implementation
factory PageBlockEmbedded.fromJson(Map<String, dynamic> json) =>
PageBlockEmbedded(
url: _readString(json['url']),
html: _readString(json['html']),
posterPhoto: _readOptional(json['poster_photo'], Photo.fromJson),
width: _readInt(json['width']),
height: _readInt(json['height']),
caption: _readObject(json['caption'], PageBlockCaption.fromJson),
isFullWidth: _readBool(json['is_full_width']),
allowScrolling: _readBool(json['allow_scrolling']),
);