How do I save this event with playerprefs ?

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class interactable : MonoBehaviour {

public Button buy;

public void click()
{

buy.interactable = true;

}
}

Save a bool as an int in PlayerPrefs as either a 0 or a 1.