Map<String, dynamic> toMap() { return { 'text': text, 'textGray': textGray.index + 1, 'bold': bold, 'underline': underline, }; }