NotebookSoftwareConfig.fromJson constructor

NotebookSoftwareConfig.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory NotebookSoftwareConfig.fromJson(Map<String, dynamic> json) {
  return NotebookSoftwareConfig(
    colabImage: decode(json['colabImage'], ColabImage.fromJson),
    env: decodeListMessage(json['env'], EnvVar.fromJson) ?? [],
    postStartupScriptConfig: decode(
      json['postStartupScriptConfig'],
      PostStartupScriptConfig.fromJson,
    ),
  );
}