def METHOD_NAME(self):
    """
    Returns the model properties as a dict
    """
    result = {}
    for attr, _ in iteritems(self.swagger_types):
        value = getattr(self, attr)
        if isinstance(value, list):
            result[attr] = list(map(
                lambda x: x.METHOD_NAME() if hasattr(x, "to_dict") else x,
                value
            ))
        elif hasattr(value, "to_dict"):
            result[attr] = value.METHOD_NAME()
        else:
            result[attr] = value
    return result