toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  'notebook_path': notebookPath,
  'command': command,
  'cell_index': cellIndex,
  if (content != null) 'content': content,
  if (cellType != null) 'cell_type': cellType,
  if (targetIndex != null) 'target_index': targetIndex,
};