GoogleCloudDocumentaiV1DocumentPageToken.fromJson constructor

GoogleCloudDocumentaiV1DocumentPageToken.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDocumentaiV1DocumentPageToken.fromJson(core.Map json_)
    : this(
        detectedBreak: json_.containsKey('detectedBreak')
            ? GoogleCloudDocumentaiV1DocumentPageTokenDetectedBreak.fromJson(
                json_['detectedBreak'] as core.Map<core.String, core.dynamic>)
            : null,
        detectedLanguages: json_.containsKey('detectedLanguages')
            ? (json_['detectedLanguages'] as core.List)
                .map((value) =>
                    GoogleCloudDocumentaiV1DocumentPageDetectedLanguage
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        layout: json_.containsKey('layout')
            ? GoogleCloudDocumentaiV1DocumentPageLayout.fromJson(
                json_['layout'] as core.Map<core.String, core.dynamic>)
            : null,
        provenance: json_.containsKey('provenance')
            ? GoogleCloudDocumentaiV1DocumentProvenance.fromJson(
                json_['provenance'] as core.Map<core.String, core.dynamic>)
            : null,
        styleInfo: json_.containsKey('styleInfo')
            ? GoogleCloudDocumentaiV1DocumentPageTokenStyleInfo.fromJson(
                json_['styleInfo'] as core.Map<core.String, core.dynamic>)
            : null,
      );