deserialize

fun <T> Key<T>.deserialize(str: String): T?