Region.fromMap constructor

Region.fromMap(
  1. Map map
)

Implementation

Region.fromMap(Map map)
    : id = map['regionId'],
      type = map['regionType'],
      timestamp = DateTime.fromMillisecondsSinceEpoch(map['timestamp']) {
  if (map.containsKey('floorPlan')) {
    floorplan = IAFloorplan.fromMap(map['floorPlan']);
  } else {
    floorplan = null;
  }
  if (map.containsKey('venue')) {
    venue = IAVenue.fromMap(map['venue']);
  } else {
    venue = null;
  }
}