BoundingPoly.fromJson constructor

BoundingPoly.fromJson(
  1. Map json_
)

Implementation

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