fromJson static method

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

Implementation

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

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