GoogleCloudDocumentaiV1BoundingPoly.fromJson constructor

GoogleCloudDocumentaiV1BoundingPoly.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDocumentaiV1BoundingPoly.fromJson(core.Map json_)
    : this(
        normalizedVertices: json_.containsKey('normalizedVertices')
            ? (json_['normalizedVertices'] as core.List)
                .map((value) =>
                    GoogleCloudDocumentaiV1NormalizedVertex.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        vertices: json_.containsKey('vertices')
            ? (json_['vertices'] as core.List)
                .map((value) => GoogleCloudDocumentaiV1Vertex.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );