toMap method Null safety
- @override
Implementation
@override
Map<String, Object?> toMap() {
return {
'id': this.id,
'coordinates': this.coordinates?.map((coord) => coord.toMap()).toList(),
'buildInfo': this.buildInfo?.toMap(),
'height': this.height,
'topFaceColor': this.topFaceColor?.value.toRadixString(16),
'sideFaceColor': this.sideFaceColor?.value.toRadixString(16),
'sideFacTexture': this.sideFacTexture,
'zIndex': this.zIndex,
'visible': this.visible
};
}