NotebookExecutionJob_CustomEnvironmentSpec.fromJson constructor
NotebookExecutionJob_CustomEnvironmentSpec.fromJson(
- Object? j
Implementation
factory NotebookExecutionJob_CustomEnvironmentSpec.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return NotebookExecutionJob_CustomEnvironmentSpec(
machineSpec: switch (json['machineSpec']) {
null => null,
Object $1 => MachineSpec.fromJson($1),
},
persistentDiskSpec: switch (json['persistentDiskSpec']) {
null => null,
Object $1 => PersistentDiskSpec.fromJson($1),
},
networkSpec: switch (json['networkSpec']) {
null => null,
Object $1 => NetworkSpec.fromJson($1),
},
);
}