ExecutionTemplate.fromJson constructor

ExecutionTemplate.fromJson(
  1. Map json_
)

Implementation

ExecutionTemplate.fromJson(core.Map json_)
    : this(
        acceleratorConfig: json_.containsKey('acceleratorConfig')
            ? SchedulerAcceleratorConfig.fromJson(json_['acceleratorConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        containerImageUri: json_.containsKey('containerImageUri')
            ? json_['containerImageUri'] as core.String
            : null,
        dataprocParameters: json_.containsKey('dataprocParameters')
            ? DataprocParameters.fromJson(json_['dataprocParameters']
                as core.Map<core.String, core.dynamic>)
            : null,
        inputNotebookFile: json_.containsKey('inputNotebookFile')
            ? json_['inputNotebookFile'] as core.String
            : null,
        jobType: json_.containsKey('jobType')
            ? json_['jobType'] as core.String
            : null,
        kernelSpec: json_.containsKey('kernelSpec')
            ? json_['kernelSpec'] as core.String
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        masterType: json_.containsKey('masterType')
            ? json_['masterType'] as core.String
            : null,
        outputNotebookFolder: json_.containsKey('outputNotebookFolder')
            ? json_['outputNotebookFolder'] as core.String
            : null,
        parameters: json_.containsKey('parameters')
            ? json_['parameters'] as core.String
            : null,
        paramsYamlFile: json_.containsKey('paramsYamlFile')
            ? json_['paramsYamlFile'] as core.String
            : null,
        scaleTier: json_.containsKey('scaleTier')
            ? json_['scaleTier'] as core.String
            : null,
        serviceAccount: json_.containsKey('serviceAccount')
            ? json_['serviceAccount'] as core.String
            : null,
        tensorboard: json_.containsKey('tensorboard')
            ? json_['tensorboard'] as core.String
            : null,
        vertexAiParameters: json_.containsKey('vertexAiParameters')
            ? VertexAIParameters.fromJson(json_['vertexAiParameters']
                as core.Map<core.String, core.dynamic>)
            : null,
      );