Unpack has two functions. get lets you safely "unpack" any values from a nested map, struct or database object. from_struct will convert a struct (and nested structs) to a map.
get
from_struct