GoogleCloudMlV1Job.fromJson constructor

GoogleCloudMlV1Job.fromJson(
  1. Map json_
)

Implementation

GoogleCloudMlV1Job.fromJson(core.Map json_)
    : this(
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        endTime: json_.containsKey('endTime')
            ? json_['endTime'] as core.String
            : null,
        errorMessage: json_.containsKey('errorMessage')
            ? json_['errorMessage'] as core.String
            : null,
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        jobId:
            json_.containsKey('jobId') ? json_['jobId'] as core.String : null,
        jobPosition: json_.containsKey('jobPosition')
            ? json_['jobPosition'] as core.String
            : 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,
        predictionInput: json_.containsKey('predictionInput')
            ? GoogleCloudMlV1PredictionInput.fromJson(json_['predictionInput']
                as core.Map<core.String, core.dynamic>)
            : null,
        predictionOutput: json_.containsKey('predictionOutput')
            ? GoogleCloudMlV1PredictionOutput.fromJson(
                json_['predictionOutput']
                    as core.Map<core.String, core.dynamic>)
            : null,
        startTime: json_.containsKey('startTime')
            ? json_['startTime'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        trainingInput: json_.containsKey('trainingInput')
            ? GoogleCloudMlV1TrainingInput.fromJson(
                json_['trainingInput'] as core.Map<core.String, core.dynamic>)
            : null,
        trainingOutput: json_.containsKey('trainingOutput')
            ? GoogleCloudMlV1TrainingOutput.fromJson(json_['trainingOutput']
                as core.Map<core.String, core.dynamic>)
            : null,
      );