#model returns the inferred model of the resource as a helper method