GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk.fromJson constructor

GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDocumentaiV1DocumentChunkedDocumentChunk.fromJson(core.Map json_)
    : this(
        chunkId: json_.containsKey('chunkId')
            ? json_['chunkId'] as core.String
            : null,
        content: json_.containsKey('content')
            ? json_['content'] as core.String
            : null,
        pageFooters: json_.containsKey('pageFooters')
            ? (json_['pageFooters'] as core.List)
                .map((value) =>
                    GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageFooter
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        pageHeaders: json_.containsKey('pageHeaders')
            ? (json_['pageHeaders'] as core.List)
                .map((value) =>
                    GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageHeader
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        pageSpan: json_.containsKey('pageSpan')
            ? GoogleCloudDocumentaiV1DocumentChunkedDocumentChunkChunkPageSpan
                .fromJson(
                    json_['pageSpan'] as core.Map<core.String, core.dynamic>)
            : null,
        sourceBlockIds: json_.containsKey('sourceBlockIds')
            ? (json_['sourceBlockIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );