Refactored Resource class is a DynamicObject that has dynamic properties and/or a collection of Resources
Added missing property to the refactored Resource class