Returns a JSON representation of CodablockParams.
Map<String, dynamic> toJson() { return {'AspectRatio': aspectRatio, 'Columns': columns, 'Rows': rows}; }