fromJson static method

Document? fromJson(
  1. dynamic richTextJson
)

Implementation

static Document? fromJson(dynamic richTextJson) {
  if (richTextJson == null) {
    return null;
  }
  return Document(
    content: richTextJson['content'],
    nodeType: richTextJson['nodeType'],
    data: richTextJson['data'],
  );
}