InputPageBlockDocument.fromJson constructor

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

Parses a InputPageBlockDocument from TDLib JSON.

Implementation

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