fromJson static method

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

Implementation

static TextQuote? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return TextQuote(
    text: FormattedText.fromJson(tdMapFromJson(json['text'])),
    position: (json['position'] as int?) ?? 0,
    isManual: (json['is_manual'] as bool?) ?? false,
  );
}