public function convertToPHPValue($value, $unmarshal = true)
    {
        if ($unmarshal) {
            $value = $value === self::getNull() ? null : $value[static::$dynamoKey];
        }

        return $value === null ? null : $this->phpValue($value);
    }
public function convertToPHPValue($value, $unmarshal = true)
    {
        if ($unmarshal) {
            $value = $value === self::getNull() ? null : $value[static::$dynamoKey];
        }

        return $value === null ? null : $this->phpValue($value);
    }
public function convertToPHPValue ( $ value , $ unmarshal = true ) { if ( $ unmarshal ) { $ value = $ value === self :: getNull ( ) ? null : $ value [ static :: $ dynamoKey ] ; } return $ value === null ? null : $ this -> phpValue ( $ value ) ; }
Converts a value from its serialized DynamoDB representation to its PHP representation
of this type, optionally unmarshalling it first.

@param array|string $value The serialized DynamoDB value to convert.
@param bool         $unmarshal

@return mixed The PHP representation of the value.
Converts a value from its serialized DynamoDB representation to its PHP representation of this type optionally unmarshalling it first .