def from_dict(self, data):
if "<STR_LIT>" in data:<EOL><INDENT>model = data["<STR_LIT>"]<EOL>self.description = model["<STR_LIT:description>"] if "<STR_LIT:description>" in model else None<EOL>self.package = model["<STR_LIT>"] if "<STR_LIT>" in model else None<EOL>self.extends = model["<STR_LIT>"] if "<STR_LIT>" in model else []<EOL>self.entity_name = model["<STR_LIT>"] if "<STR_LIT>" in model else None<EOL>self.rest_name = model["<STR_LIT>"] if "<STR_LIT>" in model else None<EOL>self.resource_name = model["<STR_LIT>"] if "<STR_LIT>" in model else None<EOL>self.allows_get = model["<STR_LIT>"] if "<STR_LIT>" in model else False<EOL>self.allows_create = model["<STR_LIT>"] if "<STR_LIT>" in model else False<EOL>self.allows_update = model["<STR_LIT>"] if "<STR_LIT>" in model else False<EOL>self.allows_delete = model["<STR_LIT>"] if "<STR_LIT>" in model else False<EOL>self.is_root = model["<STR_LIT:root>"] if "<STR_LIT:root>" in model else False<EOL>self.userlabel = model["<STR_LIT>"] if "<STR_LIT>" in model else None<EOL>self.template = model["<STR_LIT>"] if "<STR_LIT>" in model else False<EOL>self.allowed_job_commands = model["<STR_LIT>"] if "<STR_LIT>" in model else None<EOL><DEDENT>if "<STR_LIT>" in data:<EOL><INDENT>self.attributes = self._get_attributes(data["<STR_LIT>"])<EOL><DEDENT>if "<STR_LIT>" in data:<EOL><INDENT>self.child_apis = self._get_apis(data["<STR_LIT>"])<EOL><DEDENT>
Fill the current object with information from the specification