public function deserializePersonalValue(string $type, string $json): SerializablePersonalDataValue {
        $values = json_decode($json);

        $personalKey = PersonalKey::deserialize($values->personalKey);
        $dataKey     = PersonalDataKey::deserialize($values->dataKey);
        
        return $type::deserialize($this->dataStore->retrieveData($personalKey, $dataKey)->toString());
    }
public function deserializePersonalValue(string $type, string $json): SerializablePersonalDataValue {
        $values = json_decode($json);

        $personalKey = PersonalKey::deserialize($values->personalKey);
        $dataKey     = PersonalDataKey::deserialize($values->dataKey);
        
        return $type::deserialize($this->dataStore->retrieveData($personalKey, $dataKey)->toString());
    }
public function deserializePersonalValue ( string $ type , string $ json ) : SerializablePersonalDataValue { $ values = json_decode ( $ json ) ; $ personalKey = PersonalKey :: deserialize ( $ values -> personalKey ) ; $ dataKey = PersonalDataKey :: deserialize ( $ values -> dataKey ) ; return $ type :: deserialize ( $ this -> dataStore -> retrieveData ( $ personalKey , $ dataKey ) -> toString ( ) ) ; }
deserialize a value that contains personal data

@param string $type
@param string $json
@return SerializablePersonalDataValue
deserialize a value that contains personal data