toJSON method

Map<String, dynamic> toJSON()
override

Implementation

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