Map<String, dynamic> toMap() { return { 'x': x, 'y': y, 'sizeX': sizeX, 'sizeY': sizeY, 'data': data, }; }