module TD.Query.ClickPremiumSubscriptionButton
(ClickPremiumSubscriptionButton(..)
) where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as AT
import qualified TD.Lib.Internal as I
data ClickPremiumSubscriptionButton
= ClickPremiumSubscriptionButton
deriving (ClickPremiumSubscriptionButton
-> ClickPremiumSubscriptionButton -> Bool
(ClickPremiumSubscriptionButton
-> ClickPremiumSubscriptionButton -> Bool)
-> (ClickPremiumSubscriptionButton
-> ClickPremiumSubscriptionButton -> Bool)
-> Eq ClickPremiumSubscriptionButton
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ClickPremiumSubscriptionButton
-> ClickPremiumSubscriptionButton -> Bool
== :: ClickPremiumSubscriptionButton
-> ClickPremiumSubscriptionButton -> Bool
$c/= :: ClickPremiumSubscriptionButton
-> ClickPremiumSubscriptionButton -> Bool
/= :: ClickPremiumSubscriptionButton
-> ClickPremiumSubscriptionButton -> Bool
Eq, Int -> ClickPremiumSubscriptionButton -> ShowS
[ClickPremiumSubscriptionButton] -> ShowS
ClickPremiumSubscriptionButton -> String
(Int -> ClickPremiumSubscriptionButton -> ShowS)
-> (ClickPremiumSubscriptionButton -> String)
-> ([ClickPremiumSubscriptionButton] -> ShowS)
-> Show ClickPremiumSubscriptionButton
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ClickPremiumSubscriptionButton -> ShowS
showsPrec :: Int -> ClickPremiumSubscriptionButton -> ShowS
$cshow :: ClickPremiumSubscriptionButton -> String
show :: ClickPremiumSubscriptionButton -> String
$cshowList :: [ClickPremiumSubscriptionButton] -> ShowS
showList :: [ClickPremiumSubscriptionButton] -> ShowS
Show)
instance I.ShortShow ClickPremiumSubscriptionButton where
shortShow :: ClickPremiumSubscriptionButton -> String
shortShow
ClickPremiumSubscriptionButton
ClickPremiumSubscriptionButton
= String
"ClickPremiumSubscriptionButton"
instance AT.ToJSON ClickPremiumSubscriptionButton where
toJSON :: ClickPremiumSubscriptionButton -> Value
toJSON
ClickPremiumSubscriptionButton
ClickPremiumSubscriptionButton
= [Pair] -> Value
A.object
[ Key
"@type" Key -> Value -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
forall v. ToJSON v => Key -> v -> Pair
A..= Text -> Value
AT.String Text
"clickPremiumSubscriptionButton"
]