Map<String, dynamic> toJSON() => {'attachment': attachment?.toJSON(), 'optionId': optionId, 'text': text};