GoogleCloudDocumentaiV1beta2DocumentPageTable.fromJson constructor

GoogleCloudDocumentaiV1beta2DocumentPageTable.fromJson(
  1. Map _json
)

Implementation

GoogleCloudDocumentaiV1beta2DocumentPageTable.fromJson(core.Map _json)
    : this(
        bodyRows: _json.containsKey('bodyRows')
            ? (_json['bodyRows'] as core.List)
                .map<GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow>(
                    (value) =>
                        GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow
                            .fromJson(
                                value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        detectedLanguages: _json.containsKey('detectedLanguages')
            ? (_json['detectedLanguages'] as core.List)
                .map<GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage>(
                    (value) =>
                        GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage
                            .fromJson(
                                value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        headerRows: _json.containsKey('headerRows')
            ? (_json['headerRows'] as core.List)
                .map<GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow>(
                    (value) =>
                        GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow
                            .fromJson(
                                value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        layout: _json.containsKey('layout')
            ? GoogleCloudDocumentaiV1beta2DocumentPageLayout.fromJson(
                _json['layout'] as core.Map<core.String, core.dynamic>)
            : null,
      );