def __init__(self, data=None, session=None): super(ResourceItem, self).__init__(session=session) if data is not None: self._prop_dict = parse_resource_dict(self._prop_defs, data) else: self._prop_dict = {}
def _parse_data(self, data): return parse_resource_dict(self._prop_defs, data)