GoogleCloudDocumentaiV1DocumentEntity.fromJson constructor

GoogleCloudDocumentaiV1DocumentEntity.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDocumentaiV1DocumentEntity.fromJson(core.Map json_)
    : this(
        confidence: json_.containsKey('confidence')
            ? (json_['confidence'] as core.num).toDouble()
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        mentionId: json_.containsKey('mentionId')
            ? json_['mentionId'] as core.String
            : null,
        mentionText: json_.containsKey('mentionText')
            ? json_['mentionText'] as core.String
            : null,
        normalizedValue: json_.containsKey('normalizedValue')
            ? GoogleCloudDocumentaiV1DocumentEntityNormalizedValue.fromJson(
                json_['normalizedValue']
                    as core.Map<core.String, core.dynamic>)
            : null,
        pageAnchor: json_.containsKey('pageAnchor')
            ? GoogleCloudDocumentaiV1DocumentPageAnchor.fromJson(
                json_['pageAnchor'] as core.Map<core.String, core.dynamic>)
            : null,
        properties: json_.containsKey('properties')
            ? (json_['properties'] as core.List)
                .map((value) =>
                    GoogleCloudDocumentaiV1DocumentEntity.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        provenance: json_.containsKey('provenance')
            ? GoogleCloudDocumentaiV1DocumentProvenance.fromJson(
                json_['provenance'] as core.Map<core.String, core.dynamic>)
            : null,
        redacted: json_.containsKey('redacted')
            ? json_['redacted'] as core.bool
            : null,
        textAnchor: json_.containsKey('textAnchor')
            ? GoogleCloudDocumentaiV1DocumentTextAnchor.fromJson(
                json_['textAnchor'] as core.Map<core.String, core.dynamic>)
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );