GoogleCloudDocumentaiV1beta3BoundingPoly.fromJson constructor

GoogleCloudDocumentaiV1beta3BoundingPoly.fromJson(
  1. Map _json
)

Implementation

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