GetNotebookExecutionJobRequest.fromJson constructor

GetNotebookExecutionJobRequest.fromJson(
  1. Object? j
)

Implementation

factory GetNotebookExecutionJobRequest.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return GetNotebookExecutionJobRequest(
    name: switch (json['name']) {
      null => '',
      Object $1 => decodeString($1),
    },
    view: switch (json['view']) {
      null => NotebookExecutionJobView.$default,
      Object $1 => NotebookExecutionJobView.fromJson($1),
    },
  );
}