toJson method

Map<String, dynamic> toJson()

Implementation

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