IAFloorplan.fromMap constructor

IAFloorplan.fromMap(
  1. Map map
)

Implementation

IAFloorplan.fromMap(Map map)
    : id = map['id'],
      name = map['name'],
      url = map['url'],
      floor = map['floorLevel'],
      bearing = map['bearing'],
      bitmapWidth = map['bitmapWidth'],
      bitmapHeight = map['bitmapHeight'],
      widthMeters = map['widthMeters'],
      heightMeters = map['heightMeters'],
      metersToPixels = map['metersToPixels'],
      pixelsToMeters = map['pixelsToMeters'],
      bottomLeft = IACoordinate(map['bottomLeft'][1], map['bottomLeft'][0]),
      bottomRight =
          IACoordinate(map['bottomRight'][1], map['bottomRight'][0]),
      center = IACoordinate(map['center'][1], map['center'][0]),
      topLeft = IACoordinate(map['topLeft'][1], map['topLeft'][0]),
      topRight = IACoordinate(map['topRight'][1], map['topRight'][0]);