toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'poll_media': {
'text': content,
...?Helper.createOrNull(
field: emoji,
fn: () => {
'emoji': {
'id': emoji?.id,
'name': emoji?.name,
},
})
}
};
}