private function mapScalarValues(Payload $payload, array $parsedData)
    {
        if (array_key_exists('after', $parsedData)) {
            $payload->setAfter(trim($parsedData['after']));
        }

        if (array_key_exists('before', $parsedData)) {
            $payload->setBefore(trim($parsedData['before']));
        }

        if (array_key_exists('compare', $parsedData)) {
            $payload->setCompare(trim($parsedData['compare']));
        }

        if (array_key_exists('created', $parsedData)) {
            $created = $parsedData['created'] == 'true' ? true : false;
            $payload->setCreated($created);
        }

        if (array_key_exists('deleted', $parsedData)) {
            $created = $parsedData['deleted'] == 'true' ? true : false;
            $payload->setDeleted($created);
        }

        if (array_key_exists('forced', $parsedData)) {
            $created = $parsedData['forced'] == 'true' ? true : false;
            $payload->setForced($created);
        }

        if (array_key_exists('pusher', $parsedData)) {
            $personMapper = new PersonMapper();
            $pusher = $personMapper->mapFromDataArray($parsedData['pusher']);
            $payload->setPusher($pusher);
        }

        if (array_key_exists('ref', $parsedData)) {
            $payload->setRef($parsedData['ref']);
        }

        return $payload;
    }