GoogleCloudMlV1Trial.fromJson constructor

GoogleCloudMlV1Trial.fromJson(
  1. Map json_
)

Implementation

GoogleCloudMlV1Trial.fromJson(core.Map json_)
    : this(
        clientId: json_.containsKey('clientId')
            ? json_['clientId'] as core.String
            : null,
        endTime: json_.containsKey('endTime')
            ? json_['endTime'] as core.String
            : null,
        finalMeasurement: json_.containsKey('finalMeasurement')
            ? GoogleCloudMlV1Measurement.fromJson(json_['finalMeasurement']
                as core.Map<core.String, core.dynamic>)
            : null,
        infeasibleReason: json_.containsKey('infeasibleReason')
            ? json_['infeasibleReason'] as core.String
            : null,
        measurements: json_.containsKey('measurements')
            ? (json_['measurements'] as core.List)
                .map((value) => GoogleCloudMlV1Measurement.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) => GoogleCloudMlV1TrialParameter.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,
        trialInfeasible: json_.containsKey('trialInfeasible')
            ? json_['trialInfeasible'] as core.bool
            : null,
      );