GoogleCloudAiplatformV1HyperparameterTuningJob.fromJson constructor

GoogleCloudAiplatformV1HyperparameterTuningJob.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1HyperparameterTuningJob.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        encryptionSpec: json_.containsKey('encryptionSpec')
            ? GoogleCloudAiplatformV1EncryptionSpec.fromJson(
                json_['encryptionSpec']
                    as core.Map<core.String, core.dynamic>)
            : null,
        endTime: json_.containsKey('endTime')
            ? json_['endTime'] as core.String
            : null,
        error: json_.containsKey('error')
            ? GoogleRpcStatus.fromJson(
                json_['error'] as core.Map<core.String, core.dynamic>)
            : 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,
        maxFailedTrialCount: json_.containsKey('maxFailedTrialCount')
            ? json_['maxFailedTrialCount'] as core.int
            : null,
        maxTrialCount: json_.containsKey('maxTrialCount')
            ? json_['maxTrialCount'] as core.int
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        parallelTrialCount: json_.containsKey('parallelTrialCount')
            ? json_['parallelTrialCount'] as core.int
            : null,
        startTime: json_.containsKey('startTime')
            ? json_['startTime'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        studySpec: json_.containsKey('studySpec')
            ? GoogleCloudAiplatformV1StudySpec.fromJson(
                json_['studySpec'] as core.Map<core.String, core.dynamic>)
            : null,
        trialJobSpec: json_.containsKey('trialJobSpec')
            ? GoogleCloudAiplatformV1CustomJobSpec.fromJson(
                json_['trialJobSpec'] as core.Map<core.String, core.dynamic>)
            : null,
        trials: json_.containsKey('trials')
            ? (json_['trials'] as core.List)
                .map((value) => GoogleCloudAiplatformV1Trial.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );