Map<String, dynamic> toJson() { return { "x0": topLeftX, "y0": topLeftY, "x1": bottomRightX, "y1": bottomRightY, }; }