def __eq__(self, other):
    'Returns true if both objects are equal'
    if (not isinstance(other, IoXK8sClusterV1alpha4MachineSpecBootstrap)):
        return False
    return (self.to_dict() == other.to_dict())
Returns true if both objects are equal
def __eq__(self, other):
    
    if (not isinstance(other, IoXK8sClusterV1alpha4MachineSpecBootstrap)):
        return False
    return (self.to_dict() == other.to_dict())