popcorn :: Repository :: deserialize
string
to an instance.
# Deserialize a `string` to an instance.
fun deserialize(string: nullable String): nullable E is abstract
lib/popcorn/pop_repos.nit:207,2--208,65
redef fun deserialize(string) do
if string == null then return null
var deserializer = new JsonDeserializer(string)
return deserializer.deserialize.as(E)
end
lib/popcorn/pop_repos.nit:239,2--243,4