public function create(OrganizationPersona $persona, Parameters $parameters = null): OrganizationPersona
    {
        $options = [];
        $options['json'] = (array) static::toObject($persona);

        if ($parameters) {
            $options['query'] = (array) $parameters->toObject(true);
        }

        $object = $this->execute('POST', static::RESOURCE_LIST, $options);
        /** @var \Ds\Component\Api\Model\OrganizationPersona $persona */
        $persona = static::toModel($object);

        return $persona;
    }
public function create(OrganizationPersona $persona, Parameters $parameters = null): OrganizationPersona
    {
        $options = [];
        $options['json'] = (array) static::toObject($persona);

        if ($parameters) {
            $options['query'] = (array) $parameters->toObject(true);
        }

        $object = $this->execute('POST', static::RESOURCE_LIST, $options);
        /** @var \Ds\Component\Api\Model\OrganizationPersona $persona */
        $persona = static::toModel($object);

        return $persona;
    }
public function create ( OrganizationPersona $ persona , Parameters $ parameters = null ) : OrganizationPersona { $ options = [ ] ; $ options [ 'json' ] = ( array ) static :: toObject ( $ persona ) ; if ( $ parameters ) { $ options [ 'query' ] = ( array ) $ parameters -> toObject ( true ) ; } $ object = $ this -> execute ( 'POST' , static :: RESOURCE_LIST , $ options ) ; /** @var \Ds\Component\Api\Model\OrganizationPersona $persona */ $ persona = static :: toModel ( $ object ) ; return $ persona ; }
Create organization persona

@param \Ds\Component\Api\Model\OrganizationPersona $persona
@param \Ds\Component\Api\Query\OrganizationPersonaParameters $parameters
@return \Ds\Component\Api\Model\OrganizationPersona
Create organization persona