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