The non-boilerplate way to deserialize objects