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