function fields(): array
    {
        $this->checkFormIsBuilt();

        return collect($this->fields)->map(function($field) {
            return $field->toArray();
        })->keyBy("key")->all();
    }