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