Allow Resource to be initialized from an object.