Converts this instance to a JSON map.
Map<String, dynamic> toJson() { return { 'x': x, 'y': y, 'width': width, 'height': height, }; }