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