Map<String, dynamic> toMap() { return { "floatMode": floatMode, "x": x, "y": y, "width": width, "height": height }; }