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