An example for creating file-backed swap lists the following fstab entry:
md99 none swap sw,file=/usr/swap0 0 0
This doesn't really work, late argument needs to be added.
Upd: there's PR for this: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206715