fromJson static method

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

Implementation

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

  return RichTextReference(
    name: (json['name'] as String?) ?? '',
    text: RichText.fromJson(tdMapFromJson(json['text'])),
  );
}