NotebookIdleShutdownConfig.fromJson constructor

NotebookIdleShutdownConfig.fromJson(
  1. 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),
    },
  );
}