public function convertStorageToEntity($in)
{
$out = [];
foreach ($in as $key => $val) {
if (isset($this->mappings[self::TO_ENTITY][$key][0])) {
$newKey = $this->mappings[self::TO_ENTITY][$key][0];
} else {
$newKey = $this->convertStorageToEntityKey($key);
}
if (isset($this->mappings[self::TO_ENTITY][$key][1])) {
$converter = $this->mappings[self::TO_ENTITY][$key][1];
$out[$newKey] = $converter($val, $newKey);
} else {
$out[$newKey] = $val;
}
}
return $out;
}