GoogleCloudMlV1HyperparameterOutput.fromJson constructor

GoogleCloudMlV1HyperparameterOutput.fromJson(
  1. Map json_
)

Implementation

GoogleCloudMlV1HyperparameterOutput.fromJson(core.Map json_)
    : this(
        allMetrics: json_.containsKey('allMetrics')
            ? (json_['allMetrics'] as core.List)
                .map((value) =>
                    GoogleCloudMlV1HyperparameterOutputHyperparameterMetric
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        builtInAlgorithmOutput: json_.containsKey('builtInAlgorithmOutput')
            ? GoogleCloudMlV1BuiltInAlgorithmOutput.fromJson(
                json_['builtInAlgorithmOutput']
                    as core.Map<core.String, core.dynamic>)
            : null,
        endTime: json_.containsKey('endTime')
            ? json_['endTime'] as core.String
            : null,
        finalMetric: json_.containsKey('finalMetric')
            ? GoogleCloudMlV1HyperparameterOutputHyperparameterMetric
                .fromJson(json_['finalMetric']
                    as core.Map<core.String, core.dynamic>)
            : null,
        hyperparameters: json_.containsKey('hyperparameters')
            ? (json_['hyperparameters']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        isTrialStoppedEarly: json_.containsKey('isTrialStoppedEarly')
            ? json_['isTrialStoppedEarly'] as core.bool
            : null,
        startTime: json_.containsKey('startTime')
            ? json_['startTime'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        trialId: json_.containsKey('trialId')
            ? json_['trialId'] as core.String
            : 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,
      );