GoogleCloudAiplatformV1ModelEvaluation.fromJson constructor

GoogleCloudAiplatformV1ModelEvaluation.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1ModelEvaluation.fromJson(core.Map json_)
    : this(
        annotationSchemaUri: json_.containsKey('annotationSchemaUri')
            ? json_['annotationSchemaUri'] as core.String
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        dataItemSchemaUri: json_.containsKey('dataItemSchemaUri')
            ? json_['dataItemSchemaUri'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        explanationSpecs: json_.containsKey('explanationSpecs')
            ? (json_['explanationSpecs'] as core.List)
                .map((value) =>
                    GoogleCloudAiplatformV1ModelEvaluationModelEvaluationExplanationSpec
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        metadata: json_.containsKey('metadata') ? json_['metadata'] : null,
        metrics: json_.containsKey('metrics') ? json_['metrics'] : null,
        metricsSchemaUri: json_.containsKey('metricsSchemaUri')
            ? json_['metricsSchemaUri'] as core.String
            : null,
        modelExplanation: json_.containsKey('modelExplanation')
            ? GoogleCloudAiplatformV1ModelExplanation.fromJson(
                json_['modelExplanation']
                    as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        sliceDimensions: json_.containsKey('sliceDimensions')
            ? (json_['sliceDimensions'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );