Map<String, dynamic> toJson() => { 'x1': x1, 'y1': y1, 'x2': x2, 'y2': y2, 'width': width, 'height': height, };