NotebookIdleShutdownConfig.fromJson constructor
NotebookIdleShutdownConfig.fromJson(
- Object? j
Implementation
factory NotebookIdleShutdownConfig.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return NotebookIdleShutdownConfig(
idleTimeout: switch (json['idleTimeout']) {
null => null,
Object $1 => protobuf.Duration.fromJson($1),
},
idleShutdownDisabled: switch (json['idleShutdownDisabled']) {
null => false,
Object $1 => decodeBool($1),
},
);
}