AssignNotebookRuntimeRequest.fromJson constructor

AssignNotebookRuntimeRequest.fromJson(
  1. Object? j
)

Implementation

factory AssignNotebookRuntimeRequest.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return AssignNotebookRuntimeRequest(
    parent: switch (json['parent']) {
      null => '',
      Object $1 => decodeString($1),
    },
    notebookRuntimeTemplate: switch (json['notebookRuntimeTemplate']) {
      null => '',
      Object $1 => decodeString($1),
    },
    notebookRuntime: switch (json['notebookRuntime']) {
      null => null,
      Object $1 => NotebookRuntime.fromJson($1),
    },
    notebookRuntimeId: switch (json['notebookRuntimeId']) {
      null => '',
      Object $1 => decodeString($1),
    },
  );
}