Map<String, Object?> toJson() => { 'elementId': elementId, 'file': file, 'bounds': {'x': x, 'y': y, 'width': width, 'height': height}, };