Map<String, double> toMap() { return { 'mainWidth': mainWidth, 'mainHeight': mainHeight, 'otherWidth': otherWidth, 'otherHeight': otherHeight, }; }