src/Form/HandleFormFields.php
function fields(): array
    {
        $this->checkFormIsBuilt();

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

        return collect($this->fields)->map(function($field) {
            return $field->toArray();
        })->keyBy("key")->all();
    }
function fields ( ) : array { $ this -> checkFormIsBuilt ( ) ; return collect ( $ this -> fields ) -> map ( function ( $ field ) { return $ field -> toArray ( ) ; } ) -> keyBy ( "key" ) -> all ( ) ; }
Get the SharpFormField array representation.

@return array
Get the SharpFormField array representation .