Flugg\Responder\Http\SuccessResponseBuilder::serialize PHP Method

serialize() protected method

Serialize the transformation data.
protected serialize ( League\Fractal\Resource\ResourceInterface $resource ) : array
$resource League\Fractal\Resource\ResourceInterface
return array
    protected function serialize(ResourceInterface $resource) : array
    {
        return $this->manager->createData($resource)->toArray();
    }