EditorJSData.fromJson constructor

EditorJSData.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory EditorJSData.fromJson(Map<String, dynamic> json) {
  final blocksJson = json['blocks'] as List;
  return EditorJSData(
    blocks: blocksJson.map((e) => EditorJSBlock.fromJson(e)).toList(),
  );
}