BoundingPoly.fromJson constructor

BoundingPoly.fromJson(
  1. Map json_
)

Implementation

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