Get a property from a model or object.