def serialize(self, directions, encoded=None):
        """ Serialize related object
        Args:
            directions (:obj:`list` of :obj:`Model`): a list of instances of TFdirection Python representation
            encoded (:obj:`dict`, optional): dictionary of objects that have already been encoded