Converts to JSON map.
Map<String, dynamic> toJson() { return { 'alignment': alignment, 'hasHeader': hasHeader, }; }