code: def add(self, child):
          
  
          if isinstance(child, With):
              self.add_with(child)
          elif isinstance(child, EventConnection):
              self.add_event_connection(child)
          elif isinstance(child, ChildInstance):
              self.add_child_instance(child)
          elif isinstance(child, MultiInstantiate):
              self.add_multi_instantiate(child)
          elif isinstance(child, ForEach):
              self.add_for_each(child)
          else:
              raise ModelError('Unsupported child element')
docs: Adds a typed child object to the structure object.
  
          @param child: Child object to be added.