GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef.fromJson constructor

GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef.fromJson(
  1. Map _json
)

Implementation

GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef.fromJson(core.Map _json)
    : this(
        boundingPoly: _json.containsKey('boundingPoly')
            ? GoogleCloudDocumentaiV1beta2BoundingPoly.fromJson(
                _json['boundingPoly'] as core.Map<core.String, core.dynamic>)
            : null,
        confidence: _json.containsKey('confidence')
            ? (_json['confidence'] as core.num).toDouble()
            : null,
        layoutId: _json.containsKey('layoutId')
            ? _json['layoutId'] as core.String
            : null,
        layoutType: _json.containsKey('layoutType')
            ? _json['layoutType'] as core.String
            : null,
        page: _json.containsKey('page') ? _json['page'] as core.String : null,
      );