GoogleCloudAiplatformV1Trial.fromJson constructor

GoogleCloudAiplatformV1Trial.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1Trial.fromJson(core.Map json_)
    : this(
        clientId: json_.containsKey('clientId')
            ? json_['clientId'] as core.String
            : null,
        customJob: json_.containsKey('customJob')
            ? json_['customJob'] as core.String
            : null,
        endTime: json_.containsKey('endTime')
            ? json_['endTime'] as core.String
            : null,
        finalMeasurement: json_.containsKey('finalMeasurement')
            ? GoogleCloudAiplatformV1Measurement.fromJson(
                json_['finalMeasurement']
                    as core.Map<core.String, core.dynamic>)
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        infeasibleReason: json_.containsKey('infeasibleReason')
            ? json_['infeasibleReason'] as core.String
            : null,
        measurements: json_.containsKey('measurements')
            ? (json_['measurements'] as core.List)
                .map((value) => GoogleCloudAiplatformV1Measurement.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        parameters: json_.containsKey('parameters')
            ? (json_['parameters'] as core.List)
                .map((value) =>
                    GoogleCloudAiplatformV1TrialParameter.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        startTime: json_.containsKey('startTime')
            ? json_['startTime'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] 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,
      );