{-# LANGUAGE DeriveGeneric #-}
module Telegram.Bot.API.Types.GeneralForumTopicHidden where
import Data.Aeson (FromJSON (..), ToJSON (..), Object)
import GHC.Generics (Generic)
import Telegram.Bot.API.Internal.Utils
newtype GeneralForumTopicHidden = GeneralForumTopicHidden Object
deriving (forall x. Rep GeneralForumTopicHidden x -> GeneralForumTopicHidden
forall x. GeneralForumTopicHidden -> Rep GeneralForumTopicHidden x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GeneralForumTopicHidden x -> GeneralForumTopicHidden
$cfrom :: forall x. GeneralForumTopicHidden -> Rep GeneralForumTopicHidden x
Generic, Int -> GeneralForumTopicHidden -> ShowS
[GeneralForumTopicHidden] -> ShowS
GeneralForumTopicHidden -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GeneralForumTopicHidden] -> ShowS
$cshowList :: [GeneralForumTopicHidden] -> ShowS
show :: GeneralForumTopicHidden -> String
$cshow :: GeneralForumTopicHidden -> String
showsPrec :: Int -> GeneralForumTopicHidden -> ShowS
$cshowsPrec :: Int -> GeneralForumTopicHidden -> ShowS
Show)
instance ToJSON GeneralForumTopicHidden where toJSON :: GeneralForumTopicHidden -> Value
toJSON = forall a (d :: Meta) (f :: * -> *).
(Generic a, GToJSON Zero (Rep a), Rep a ~ D1 d f, Datatype d) =>
a -> Value
gtoJSON
instance FromJSON GeneralForumTopicHidden where parseJSON :: Value -> Parser GeneralForumTopicHidden
parseJSON = forall a (d :: Meta) (f :: * -> *).
(Generic a, GFromJSON Zero (Rep a), Rep a ~ D1 d f, Datatype d) =>
Value -> Parser a
gparseJSON