BMFPrismOverlay.fromMap constructor
- Map map
map => BMFPrismOverlay
Implementation
BMFPrismOverlay.fromMap(Map map)
: assert(map['topFaceColor'] != null),
super.fromMap(map) {
if (map['coordinates'] != null) {
coordinates = <BMFCoordinate>[];
map['coordinates'].forEach((v) {
coordinates?.add(BMFCoordinate.fromMap(v as Map));
});
}
topFaceColor = ColorUtil.hexToColor(map['topFaceColor']);
sideFaceColor = ColorUtil.hexToColor(map['sideFaceColor']);
height = map['height'].floor();
buildInfo = (map['buildInfo'] == null
? null
: BMFBuildInfo.fromMap(map['buildInfo']));
sideFacTexture = map['sideFacTexture'];
isGrowthAnimation = map['isGrowthAnimation'];
showLevel = map['showLevel'];
floorColor = ColorUtil.hexToColor(map['floorColor']);
floorSideTextureImage = map['floorSideTextureImage'];
floorHeight = map['floorHeight'] as double;
isRoundedCorner = map['isRoundedCorner'];
roundedCornerRadius = map['roundedCornerRadius'] as double;
}