PageBlockDocument.fromJson constructor

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

Parses a PageBlockDocument from TDLib JSON.

Implementation

factory PageBlockDocument.fromJson(Map<String, dynamic> json) =>
    PageBlockDocument(
      document: _readObject(json['document'], Document.fromJson),
      caption: _readOptional(json['caption'], PageBlockCaption.fromJson),
    );