Datastore/src/Connection/Grpc.php
private function toGrpcValue(array $property)
    {
        $type = array_keys($property)[0];
        $val = $property[$type];
        if ($val === null) {
            $val = NullValue::NULL_VALUE;
        }

        if ($type === 'timestampValue') {
            $val = $this->formatTimestampForApi($val);
        }

        if ($type === 'geoPointValue') {
            $val = $this->arrayFilterRemoveNull($val);
        }

        return [$type, $val];
    }
private function toGrpcValue(array $property)
    {
        $type = array_keys($property)[0];
        $val = $property[$type];
        if ($val === null) {
            $val = NullValue::NULL_VALUE;
        }

        if ($type === 'timestampValue') {
            $val = $this->formatTimestampForApi($val);
        }

        if ($type === 'geoPointValue') {
            $val = $this->arrayFilterRemoveNull($val);
        }

        return [$type, $val];
    }
private function toGrpcValue ( array $ property ) { $ type = array_keys ( $ property ) [ 0 ] ; $ val = $ property [ $ type ] ; if ( $ val === null ) { $ val = NullValue :: NULL_VALUE ; } if ( $ type === 'timestampValue' ) { $ val = $ this -> formatTimestampForApi ( $ val ) ; } if ( $ type === 'geoPointValue' ) { $ val = $ this -> arrayFilterRemoveNull ( $ val ) ; } return [ $ type , $ val ] ; }
Convert a property value to a gRPC value.

@param array $property The input property.
@return array
Convert a property value to a gRPC value .