RichTextContainerCode.fromJson constructor

RichTextContainerCode.fromJson(
  1. JSONMap json
)

Implementation

factory RichTextContainerCode.fromJson(JSONMap json) => RichTextContainerCode(
  codeLanguage: json["attrs"]["class"],
  content: List<JSONMap>.from(json["content"]).map(RichTextLeaf.fromJson).toList(),
);