Seems there is no method for this.
I needed to iterate over all form fields and get their data:
$data = array_map(fn ($v) => $v->getData(), $form->all());
If you have nested forms, then something along those lines (untested):
$data = array_map(function ($field) {
if ($field->getConfig()->getCompound()) {
$fieldsData = ... // call recursively
return $fieldsData;
}
return $field->getData();
}, $form->all());