createBuilding function
Implementation
Building createBuilding(Map map) {
return Building(
id: map["buildingIdentifier"],
name: map["name"],
address: map["address"],
bounds: createBounds(map["bounds"]),
boundsRotated: createBounds(map["boundsRotated"]),
center: createCoordinate(map["center"]),
width: map["dimensions"]["width"],
height: map["dimensions"]["height"],
pictureThumbUrl: map["pictureThumbUrl"],
pictureUrl: map["pictureUrl"],
rotation: map["rotation"],
userIdentifier: map["userIdentifier"],
customFields: Map<String, dynamic>.from(map["customFields"]),
createdAt: map["createdAt"],
updatedAt: map["updatedAt"]);
}