GoogleCloudDatalabelingV1beta1Evaluation.fromJson constructor

GoogleCloudDatalabelingV1beta1Evaluation.fromJson(
  1. Map _json
)

Implementation

GoogleCloudDatalabelingV1beta1Evaluation.fromJson(core.Map _json)
    : this(
        annotationType: _json.containsKey('annotationType')
            ? _json['annotationType'] as core.String
            : null,
        config: _json.containsKey('config')
            ? GoogleCloudDatalabelingV1beta1EvaluationConfig.fromJson(
                _json['config'] as core.Map<core.String, core.dynamic>)
            : null,
        createTime: _json.containsKey('createTime')
            ? _json['createTime'] as core.String
            : null,
        evaluatedItemCount: _json.containsKey('evaluatedItemCount')
            ? _json['evaluatedItemCount'] as core.String
            : null,
        evaluationJobRunTime: _json.containsKey('evaluationJobRunTime')
            ? _json['evaluationJobRunTime'] as core.String
            : null,
        evaluationMetrics: _json.containsKey('evaluationMetrics')
            ? GoogleCloudDatalabelingV1beta1EvaluationMetrics.fromJson(
                _json['evaluationMetrics']
                    as core.Map<core.String, core.dynamic>)
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
      );