GoogleCloudDocumentaiV1beta1BoundingPoly.fromJson constructor

GoogleCloudDocumentaiV1beta1BoundingPoly.fromJson(
  1. Map _json
)

Implementation

GoogleCloudDocumentaiV1beta1BoundingPoly.fromJson(core.Map _json)
    : this(
        normalizedVertices: _json.containsKey('normalizedVertices')
            ? (_json['normalizedVertices'] as core.List)
                .map<GoogleCloudDocumentaiV1beta1NormalizedVertex>((value) =>
                    GoogleCloudDocumentaiV1beta1NormalizedVertex.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        vertices: _json.containsKey('vertices')
            ? (_json['vertices'] as core.List)
                .map<GoogleCloudDocumentaiV1beta1Vertex>((value) =>
                    GoogleCloudDocumentaiV1beta1Vertex.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );