GoogleCloudDocumentaiV1ProcessOptions.fromJson constructor

GoogleCloudDocumentaiV1ProcessOptions.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDocumentaiV1ProcessOptions.fromJson(core.Map json_)
    : this(
        fromEnd: json_.containsKey('fromEnd')
            ? json_['fromEnd'] as core.int
            : null,
        fromStart: json_.containsKey('fromStart')
            ? json_['fromStart'] as core.int
            : null,
        individualPageSelector: json_.containsKey('individualPageSelector')
            ? GoogleCloudDocumentaiV1ProcessOptionsIndividualPageSelector
                .fromJson(json_['individualPageSelector']
                    as core.Map<core.String, core.dynamic>)
            : null,
        layoutConfig: json_.containsKey('layoutConfig')
            ? GoogleCloudDocumentaiV1ProcessOptionsLayoutConfig.fromJson(
                json_['layoutConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        ocrConfig: json_.containsKey('ocrConfig')
            ? GoogleCloudDocumentaiV1OcrConfig.fromJson(
                json_['ocrConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        schemaOverride: json_.containsKey('schemaOverride')
            ? GoogleCloudDocumentaiV1DocumentSchema.fromJson(
                json_['schemaOverride']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );