ListNotebookRuntimeTemplatesResponse.fromJson constructor
ListNotebookRuntimeTemplatesResponse.fromJson(
- Object? j
Implementation
factory ListNotebookRuntimeTemplatesResponse.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return ListNotebookRuntimeTemplatesResponse(
notebookRuntimeTemplates: switch (json['notebookRuntimeTemplates']) {
null => [],
List<Object?> $1 => [
for (final i in $1) NotebookRuntimeTemplate.fromJson(i),
],
_ => throw const FormatException(
'"notebookRuntimeTemplates" is not a list',
),
},
nextPageToken: switch (json['nextPageToken']) {
null => '',
Object $1 => decodeString($1),
},
);
}