module TD.Query.GetCountries
(GetCountries(..)
) where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as AT
import qualified TD.Lib.Internal as I
data GetCountries
= GetCountries
deriving (GetCountries -> GetCountries -> Bool
(GetCountries -> GetCountries -> Bool)
-> (GetCountries -> GetCountries -> Bool) -> Eq GetCountries
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GetCountries -> GetCountries -> Bool
== :: GetCountries -> GetCountries -> Bool
$c/= :: GetCountries -> GetCountries -> Bool
/= :: GetCountries -> GetCountries -> Bool
Eq, Int -> GetCountries -> ShowS
[GetCountries] -> ShowS
GetCountries -> String
(Int -> GetCountries -> ShowS)
-> (GetCountries -> String)
-> ([GetCountries] -> ShowS)
-> Show GetCountries
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GetCountries -> ShowS
showsPrec :: Int -> GetCountries -> ShowS
$cshow :: GetCountries -> String
show :: GetCountries -> String
$cshowList :: [GetCountries] -> ShowS
showList :: [GetCountries] -> ShowS
Show)
instance I.ShortShow GetCountries where
shortShow :: GetCountries -> String
shortShow
GetCountries
GetCountries
= String
"GetCountries"
instance AT.ToJSON GetCountries where
toJSON :: GetCountries -> Value
toJSON
GetCountries
GetCountries
= [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
"getCountries"
]