GoogleCloudDocumentaiV1Evaluation.fromJson constructor

GoogleCloudDocumentaiV1Evaluation.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDocumentaiV1Evaluation.fromJson(core.Map json_)
    : this(
        allEntitiesMetrics: json_.containsKey('allEntitiesMetrics')
            ? GoogleCloudDocumentaiV1EvaluationMultiConfidenceMetrics
                .fromJson(json_['allEntitiesMetrics']
                    as core.Map<core.String, core.dynamic>)
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        documentCounters: json_.containsKey('documentCounters')
            ? GoogleCloudDocumentaiV1EvaluationCounters.fromJson(
                json_['documentCounters']
                    as core.Map<core.String, core.dynamic>)
            : null,
        entityMetrics: json_.containsKey('entityMetrics')
            ? (json_['entityMetrics'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  GoogleCloudDocumentaiV1EvaluationMultiConfidenceMetrics
                      .fromJson(value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        kmsKeyName: json_.containsKey('kmsKeyName')
            ? json_['kmsKeyName'] as core.String
            : null,
        kmsKeyVersionName: json_.containsKey('kmsKeyVersionName')
            ? json_['kmsKeyVersionName'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
      );