NotebookEditInput.fromJson constructor

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

Implementation

factory NotebookEditInput.fromJson(Map<String, dynamic> json) =>
    NotebookEditInput(
      notebookPath: json['notebook_path'] as String,
      command: json['command'] as String,
      cellIndex: json['cell_index'] as int? ?? 0,
      content: json['content'] as String?,
      cellType: json['cell_type'] as String?,
      targetIndex: json['target_index'] as int?,
    );