using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Bootstrap
{
    public class OffCanvasOptions
    {
        public bool Backdrop { get; set; } = true;
        public bool Keyboard { get; set; } = true;
        public bool Scroll { get; set; } = false;

        public string ToJSON()
        {
            string template = $@"{{
""backdrop"": {(Backdrop ? "true" : "false")},
""keyboard"": {(Keyboard ? "true" : "false")},
""scroll"": {(Scroll ? "true" : "false")}
}}";

            return template;
        }
    }
}
