CreateNotebookRuntimeTemplateRequest.fromJson constructor
CreateNotebookRuntimeTemplateRequest.fromJson(
- Object? j
Implementation
factory CreateNotebookRuntimeTemplateRequest.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return CreateNotebookRuntimeTemplateRequest(
parent: switch (json['parent']) {
null => '',
Object $1 => decodeString($1),
},
notebookRuntimeTemplate: switch (json['notebookRuntimeTemplate']) {
null => null,
Object $1 => NotebookRuntimeTemplate.fromJson($1),
},
notebookRuntimeTemplateId: switch (json['notebookRuntimeTemplateId']) {
null => '',
Object $1 => decodeString($1),
},
);
}