PolylineFence.fromMap constructor

PolylineFence.fromMap(
  1. Map map
)

Implementation

PolylineFence.fromMap(Map map)
    : assert(map != null),
      super.fromMap(map) {
  if (map['vertexes'] != null) {
    vertexes = <LatLng>[];
    map['vertexes'].forEach((e) {
      vertexes.add(LatLng.fromMap(e as Map));
    });
  }
  offset = map['offset'];
  if (map['coordType'] != null) {
    int value = map['coordType'] as int;
    if (value >= 0 && value <= 2) {
      coordType = CoordType.values[value];
    }
  }
}