TextQuote.fromJson constructor

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

Parses a TextQuote from TDLib JSON.

Implementation

factory TextQuote.fromJson(Map<String, dynamic> json) => TextQuote(
      text: _readObject(json['text'], FormattedText.fromJson),
      position: _readInt(json['position']),
      isManual: _readBool(json['is_manual']),
    );