RichTextLeafEmoji.fromJson constructor

RichTextLeafEmoji.fromJson(
  1. JSONMap json
)

Implementation

factory RichTextLeafEmoji.fromJson(JSONMap json) => RichTextLeafEmoji(
      name: json["attrs"]["name"],
      text: json["attrs"]["emoji"],
      fallback: mapIfNotNull(json["attrs"]["fallbackImage"] as String?, Uri.parse),
      marks: RichTextLeafMarkable.marksFromJson(json),
    );