private function buildCursorFromLastItem(CursorStrategyInterface $cursorStrategy, Result $result)
    {
        if (! $result->hasKey('LastEvaluatedKey')) {
            return null;
        }

        $items    = $result->get('Items');
        $lastItem = $this->marshaler->unmarshalItem(end($items));

        return $cursorStrategy->buildCursorFromKey($lastItem);
    }
private function buildCursorFromLastItem(CursorStrategyInterface $cursorStrategy, Result $result)
    {
        if (! $result->hasKey('LastEvaluatedKey')) {
            return null;
        }

        $items    = $result->get('Items');
        $lastItem = $this->marshaler->unmarshalItem(end($items));

        return $cursorStrategy->buildCursorFromKey($lastItem);
    }
@param CursorStrategyInterface $cursorStrategy
@param Result                  $result

@return null|string