NotebookExecution.fromJson constructor

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

Implementation

factory NotebookExecution.fromJson(Map<String, dynamic> json) {
  return NotebookExecution(
    arn: json['Arn'] as String?,
    editorId: json['EditorId'] as String?,
    endTime: timeStampFromJson(json['EndTime']),
    executionEngine: json['ExecutionEngine'] != null
        ? ExecutionEngineConfig.fromJson(
            json['ExecutionEngine'] as Map<String, dynamic>)
        : null,
    lastStateChangeReason: json['LastStateChangeReason'] as String?,
    notebookExecutionId: json['NotebookExecutionId'] as String?,
    notebookExecutionName: json['NotebookExecutionName'] as String?,
    notebookInstanceSecurityGroupId:
        json['NotebookInstanceSecurityGroupId'] as String?,
    notebookParams: json['NotebookParams'] as String?,
    outputNotebookURI: json['OutputNotebookURI'] as String?,
    startTime: timeStampFromJson(json['StartTime']),
    status: (json['Status'] as String?)?.toNotebookExecutionStatus(),
    tags: (json['Tags'] as List?)
        ?.whereNotNull()
        .map((e) => Tag.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}