Converts instance to a map.
Map<String, dynamic> toMap() { return { "height": height, "width": width, "x": x, "y": y, }; }