TextRanges.fromJson constructor

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

Parses a TextRanges from TDLib JSON.

Implementation

factory TextRanges.fromJson(Map<String, dynamic> json) => TextRanges(
  ranges: _readList<TextRange>(
    json['ranges'],
    (e) => _readObject(e, TextRange.fromJson),
  ),
  extra: json['@extra'],
  clientId: _readClientId(json['@client_id']),
);