toMap method
/////////////////////////////////////////////////////////
Other functions
/////////////////////////////////////////////////////////
Implementation
Map<String, double> toMap() {
return {
"x": this.position.x,
"y": this.position.y,
"scaleX": this.scale.x,
"scaleY": this.scale.y,
"rotation": this.rotation,
"alpha": this.alpha
};
}