GoogleCloudDocumentaiV1beta2BoundingPoly.fromJson constructor

GoogleCloudDocumentaiV1beta2BoundingPoly.fromJson(
  1. Map _json
)

Implementation

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