PageBlockCaption.fromJson constructor

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

Parses a PageBlockCaption from TDLib JSON.

Implementation

factory PageBlockCaption.fromJson(Map<String, dynamic> json) =>
    PageBlockCaption(
      text: _readObject(json['text'], RichText.fromJson),
      credit: _readObject(json['credit'], RichText.fromJson),
    );