GoogleCloudMlV1TrainingOutput.fromJson constructor

GoogleCloudMlV1TrainingOutput.fromJson(
  1. Map json_
)

Implementation

GoogleCloudMlV1TrainingOutput.fromJson(core.Map json_)
    : this(
        builtInAlgorithmOutput: json_.containsKey('builtInAlgorithmOutput')
            ? GoogleCloudMlV1BuiltInAlgorithmOutput.fromJson(
                json_['builtInAlgorithmOutput']
                    as core.Map<core.String, core.dynamic>)
            : null,
        completedTrialCount: json_.containsKey('completedTrialCount')
            ? json_['completedTrialCount'] as core.String
            : null,
        consumedMLUnits: json_.containsKey('consumedMLUnits')
            ? (json_['consumedMLUnits'] as core.num).toDouble()
            : null,
        hyperparameterMetricTag: json_.containsKey('hyperparameterMetricTag')
            ? json_['hyperparameterMetricTag'] as core.String
            : null,
        isBuiltInAlgorithmJob: json_.containsKey('isBuiltInAlgorithmJob')
            ? json_['isBuiltInAlgorithmJob'] as core.bool
            : null,
        isHyperparameterTuningJob:
            json_.containsKey('isHyperparameterTuningJob')
                ? json_['isHyperparameterTuningJob'] as core.bool
                : null,
        trials: json_.containsKey('trials')
            ? (json_['trials'] as core.List)
                .map((value) => GoogleCloudMlV1HyperparameterOutput.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        webAccessUris: json_.containsKey('webAccessUris')
            ? (json_['webAccessUris'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
      );