module Patrol.Type.ProguardDebugImage where
import qualified Data.Aeson as Aeson
import qualified Data.Text as Text
import qualified Patrol.Extra.Aeson as Aeson
newtype ProguardDebugImage = ProguardDebugImage
{ ProguardDebugImage -> Text
uuid :: Text.Text
}
deriving (ProguardDebugImage -> ProguardDebugImage -> Bool
(ProguardDebugImage -> ProguardDebugImage -> Bool)
-> (ProguardDebugImage -> ProguardDebugImage -> Bool)
-> Eq ProguardDebugImage
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ProguardDebugImage -> ProguardDebugImage -> Bool
== :: ProguardDebugImage -> ProguardDebugImage -> Bool
$c/= :: ProguardDebugImage -> ProguardDebugImage -> Bool
/= :: ProguardDebugImage -> ProguardDebugImage -> Bool
Eq, Int -> ProguardDebugImage -> ShowS
[ProguardDebugImage] -> ShowS
ProguardDebugImage -> String
(Int -> ProguardDebugImage -> ShowS)
-> (ProguardDebugImage -> String)
-> ([ProguardDebugImage] -> ShowS)
-> Show ProguardDebugImage
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ProguardDebugImage -> ShowS
showsPrec :: Int -> ProguardDebugImage -> ShowS
$cshow :: ProguardDebugImage -> String
show :: ProguardDebugImage -> String
$cshowList :: [ProguardDebugImage] -> ShowS
showList :: [ProguardDebugImage] -> ShowS
Show)
instance Aeson.ToJSON ProguardDebugImage where
toJSON :: ProguardDebugImage -> Value
toJSON ProguardDebugImage
proguardDebugImage =
[Pair] -> Value
Aeson.intoObject
[ String -> Text -> Pair
forall a. ToJSON a => String -> a -> Pair
Aeson.pair String
"uuid" (Text -> Pair) -> Text -> Pair
forall a b. (a -> b) -> a -> b
$ ProguardDebugImage -> Text
uuid ProguardDebugImage
proguardDebugImage
]
empty :: ProguardDebugImage
empty :: ProguardDebugImage
empty =
ProguardDebugImage
{ uuid :: Text
uuid = Text
Text.empty
}