module TD.Query.TestCallVectorIntObject
(TestCallVectorIntObject(..)
) where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as AT
import qualified TD.Lib.Internal as I
import qualified TD.Data.TestInt as TestInt
data TestCallVectorIntObject
= TestCallVectorIntObject
{ TestCallVectorIntObject -> Maybe [TestInt]
x :: Maybe [TestInt.TestInt]
}
deriving (TestCallVectorIntObject -> TestCallVectorIntObject -> Bool
(TestCallVectorIntObject -> TestCallVectorIntObject -> Bool)
-> (TestCallVectorIntObject -> TestCallVectorIntObject -> Bool)
-> Eq TestCallVectorIntObject
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TestCallVectorIntObject -> TestCallVectorIntObject -> Bool
== :: TestCallVectorIntObject -> TestCallVectorIntObject -> Bool
$c/= :: TestCallVectorIntObject -> TestCallVectorIntObject -> Bool
/= :: TestCallVectorIntObject -> TestCallVectorIntObject -> Bool
Eq, Int -> TestCallVectorIntObject -> ShowS
[TestCallVectorIntObject] -> ShowS
TestCallVectorIntObject -> String
(Int -> TestCallVectorIntObject -> ShowS)
-> (TestCallVectorIntObject -> String)
-> ([TestCallVectorIntObject] -> ShowS)
-> Show TestCallVectorIntObject
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TestCallVectorIntObject -> ShowS
showsPrec :: Int -> TestCallVectorIntObject -> ShowS
$cshow :: TestCallVectorIntObject -> String
show :: TestCallVectorIntObject -> String
$cshowList :: [TestCallVectorIntObject] -> ShowS
showList :: [TestCallVectorIntObject] -> ShowS
Show)
instance I.ShortShow TestCallVectorIntObject where
shortShow :: TestCallVectorIntObject -> String
shortShow
TestCallVectorIntObject
{ x :: TestCallVectorIntObject -> Maybe [TestInt]
x = Maybe [TestInt]
x_
}
= String
"TestCallVectorIntObject"
String -> ShowS
forall a. [a] -> [a] -> [a]
++ [String] -> String
I.cc
[ String
"x" String -> Maybe [TestInt] -> String
forall a. ShortShow a => String -> Maybe a -> String
`I.p` Maybe [TestInt]
x_
]
instance AT.ToJSON TestCallVectorIntObject where
toJSON :: TestCallVectorIntObject -> Value
toJSON
TestCallVectorIntObject
{ x :: TestCallVectorIntObject -> Maybe [TestInt]
x = Maybe [TestInt]
x_
}
= [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
"testCallVectorIntObject"
, Key
"x" Key -> Maybe [TestInt] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
forall v. ToJSON v => Key -> v -> Pair
A..= Maybe [TestInt]
x_
]