Core/src/GrpcTrait.php
private function formatStructForApi(array $fields)
    {
        $fFields = [];

        foreach ($fields as $key => $value) {
            $fFields[$key] = $this->formatValueForApi($value);
        }

        return ['fields' => $fFields];
    }
private function formatStructForApi(array $fields)
    {
        $fFields = [];

        foreach ($fields as $key => $value) {
            $fFields[$key] = $this->formatValueForApi($value);
        }

        return ['fields' => $fFields];
    }
private function formatStructForApi ( array $ fields ) { $ fFields = [ ] ; foreach ( $ fields as $ key => $ value ) { $ fFields [ $ key ] = $ this -> formatValueForApi ( $ value ) ; } return [ 'fields' => $ fFields ] ; }
Format a struct for the API.

@param array $fields
@return array
Format a struct for the API .