{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Support.Types.CaseDetails where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.Support.Types.RecentCaseCommunications
data CaseDetails = CaseDetails'
{
CaseDetails -> Maybe Text
subject :: Prelude.Maybe Prelude.Text,
CaseDetails -> Maybe Text
status :: Prelude.Maybe Prelude.Text,
CaseDetails -> Maybe RecentCaseCommunications
recentCommunications :: Prelude.Maybe RecentCaseCommunications,
CaseDetails -> Maybe Text
severityCode :: Prelude.Maybe Prelude.Text,
CaseDetails -> Maybe Text
caseId :: Prelude.Maybe Prelude.Text,
CaseDetails -> Maybe [Text]
ccEmailAddresses :: Prelude.Maybe [Prelude.Text],
CaseDetails -> Maybe Text
displayId :: Prelude.Maybe Prelude.Text,
CaseDetails -> Maybe Text
submittedBy :: Prelude.Maybe Prelude.Text,
CaseDetails -> Maybe Text
language :: Prelude.Maybe Prelude.Text,
CaseDetails -> Maybe Text
timeCreated :: Prelude.Maybe Prelude.Text,
CaseDetails -> Maybe Text
categoryCode :: Prelude.Maybe Prelude.Text,
CaseDetails -> Maybe Text
serviceCode :: Prelude.Maybe Prelude.Text
}
deriving (CaseDetails -> CaseDetails -> Bool
(CaseDetails -> CaseDetails -> Bool)
-> (CaseDetails -> CaseDetails -> Bool) -> Eq CaseDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CaseDetails -> CaseDetails -> Bool
$c/= :: CaseDetails -> CaseDetails -> Bool
== :: CaseDetails -> CaseDetails -> Bool
$c== :: CaseDetails -> CaseDetails -> Bool
Prelude.Eq, ReadPrec [CaseDetails]
ReadPrec CaseDetails
Int -> ReadS CaseDetails
ReadS [CaseDetails]
(Int -> ReadS CaseDetails)
-> ReadS [CaseDetails]
-> ReadPrec CaseDetails
-> ReadPrec [CaseDetails]
-> Read CaseDetails
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CaseDetails]
$creadListPrec :: ReadPrec [CaseDetails]
readPrec :: ReadPrec CaseDetails
$creadPrec :: ReadPrec CaseDetails
readList :: ReadS [CaseDetails]
$creadList :: ReadS [CaseDetails]
readsPrec :: Int -> ReadS CaseDetails
$creadsPrec :: Int -> ReadS CaseDetails
Prelude.Read, Int -> CaseDetails -> ShowS
[CaseDetails] -> ShowS
CaseDetails -> String
(Int -> CaseDetails -> ShowS)
-> (CaseDetails -> String)
-> ([CaseDetails] -> ShowS)
-> Show CaseDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CaseDetails] -> ShowS
$cshowList :: [CaseDetails] -> ShowS
show :: CaseDetails -> String
$cshow :: CaseDetails -> String
showsPrec :: Int -> CaseDetails -> ShowS
$cshowsPrec :: Int -> CaseDetails -> ShowS
Prelude.Show, (forall x. CaseDetails -> Rep CaseDetails x)
-> (forall x. Rep CaseDetails x -> CaseDetails)
-> Generic CaseDetails
forall x. Rep CaseDetails x -> CaseDetails
forall x. CaseDetails -> Rep CaseDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CaseDetails x -> CaseDetails
$cfrom :: forall x. CaseDetails -> Rep CaseDetails x
Prelude.Generic)
newCaseDetails ::
CaseDetails
newCaseDetails :: CaseDetails
newCaseDetails =
CaseDetails' :: Maybe Text
-> Maybe Text
-> Maybe RecentCaseCommunications
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> CaseDetails
CaseDetails'
{ $sel:subject:CaseDetails' :: Maybe Text
subject = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:status:CaseDetails' :: Maybe Text
status = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:recentCommunications:CaseDetails' :: Maybe RecentCaseCommunications
recentCommunications = Maybe RecentCaseCommunications
forall a. Maybe a
Prelude.Nothing,
$sel:severityCode:CaseDetails' :: Maybe Text
severityCode = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:caseId:CaseDetails' :: Maybe Text
caseId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:ccEmailAddresses:CaseDetails' :: Maybe [Text]
ccEmailAddresses = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:displayId:CaseDetails' :: Maybe Text
displayId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:submittedBy:CaseDetails' :: Maybe Text
submittedBy = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:language:CaseDetails' :: Maybe Text
language = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:timeCreated:CaseDetails' :: Maybe Text
timeCreated = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:categoryCode:CaseDetails' :: Maybe Text
categoryCode = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:serviceCode:CaseDetails' :: Maybe Text
serviceCode = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
caseDetails_subject :: Lens.Lens' CaseDetails (Prelude.Maybe Prelude.Text)
caseDetails_subject :: (Maybe Text -> f (Maybe Text)) -> CaseDetails -> f CaseDetails
caseDetails_subject = (CaseDetails -> Maybe Text)
-> (CaseDetails -> Maybe Text -> CaseDetails)
-> Lens CaseDetails CaseDetails (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CaseDetails' {Maybe Text
subject :: Maybe Text
$sel:subject:CaseDetails' :: CaseDetails -> Maybe Text
subject} -> Maybe Text
subject) (\s :: CaseDetails
s@CaseDetails' {} Maybe Text
a -> CaseDetails
s {$sel:subject:CaseDetails' :: Maybe Text
subject = Maybe Text
a} :: CaseDetails)
caseDetails_status :: Lens.Lens' CaseDetails (Prelude.Maybe Prelude.Text)
caseDetails_status :: (Maybe Text -> f (Maybe Text)) -> CaseDetails -> f CaseDetails
caseDetails_status = (CaseDetails -> Maybe Text)
-> (CaseDetails -> Maybe Text -> CaseDetails)
-> Lens CaseDetails CaseDetails (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CaseDetails' {Maybe Text
status :: Maybe Text
$sel:status:CaseDetails' :: CaseDetails -> Maybe Text
status} -> Maybe Text
status) (\s :: CaseDetails
s@CaseDetails' {} Maybe Text
a -> CaseDetails
s {$sel:status:CaseDetails' :: Maybe Text
status = Maybe Text
a} :: CaseDetails)
caseDetails_recentCommunications :: Lens.Lens' CaseDetails (Prelude.Maybe RecentCaseCommunications)
caseDetails_recentCommunications :: (Maybe RecentCaseCommunications
-> f (Maybe RecentCaseCommunications))
-> CaseDetails -> f CaseDetails
caseDetails_recentCommunications = (CaseDetails -> Maybe RecentCaseCommunications)
-> (CaseDetails -> Maybe RecentCaseCommunications -> CaseDetails)
-> Lens
CaseDetails
CaseDetails
(Maybe RecentCaseCommunications)
(Maybe RecentCaseCommunications)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CaseDetails' {Maybe RecentCaseCommunications
recentCommunications :: Maybe RecentCaseCommunications
$sel:recentCommunications:CaseDetails' :: CaseDetails -> Maybe RecentCaseCommunications
recentCommunications} -> Maybe RecentCaseCommunications
recentCommunications) (\s :: CaseDetails
s@CaseDetails' {} Maybe RecentCaseCommunications
a -> CaseDetails
s {$sel:recentCommunications:CaseDetails' :: Maybe RecentCaseCommunications
recentCommunications = Maybe RecentCaseCommunications
a} :: CaseDetails)
caseDetails_severityCode :: Lens.Lens' CaseDetails (Prelude.Maybe Prelude.Text)
caseDetails_severityCode :: (Maybe Text -> f (Maybe Text)) -> CaseDetails -> f CaseDetails
caseDetails_severityCode = (CaseDetails -> Maybe Text)
-> (CaseDetails -> Maybe Text -> CaseDetails)
-> Lens CaseDetails CaseDetails (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CaseDetails' {Maybe Text
severityCode :: Maybe Text
$sel:severityCode:CaseDetails' :: CaseDetails -> Maybe Text
severityCode} -> Maybe Text
severityCode) (\s :: CaseDetails
s@CaseDetails' {} Maybe Text
a -> CaseDetails
s {$sel:severityCode:CaseDetails' :: Maybe Text
severityCode = Maybe Text
a} :: CaseDetails)
caseDetails_caseId :: Lens.Lens' CaseDetails (Prelude.Maybe Prelude.Text)
caseDetails_caseId :: (Maybe Text -> f (Maybe Text)) -> CaseDetails -> f CaseDetails
caseDetails_caseId = (CaseDetails -> Maybe Text)
-> (CaseDetails -> Maybe Text -> CaseDetails)
-> Lens CaseDetails CaseDetails (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CaseDetails' {Maybe Text
caseId :: Maybe Text
$sel:caseId:CaseDetails' :: CaseDetails -> Maybe Text
caseId} -> Maybe Text
caseId) (\s :: CaseDetails
s@CaseDetails' {} Maybe Text
a -> CaseDetails
s {$sel:caseId:CaseDetails' :: Maybe Text
caseId = Maybe Text
a} :: CaseDetails)
caseDetails_ccEmailAddresses :: Lens.Lens' CaseDetails (Prelude.Maybe [Prelude.Text])
caseDetails_ccEmailAddresses :: (Maybe [Text] -> f (Maybe [Text])) -> CaseDetails -> f CaseDetails
caseDetails_ccEmailAddresses = (CaseDetails -> Maybe [Text])
-> (CaseDetails -> Maybe [Text] -> CaseDetails)
-> Lens CaseDetails CaseDetails (Maybe [Text]) (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CaseDetails' {Maybe [Text]
ccEmailAddresses :: Maybe [Text]
$sel:ccEmailAddresses:CaseDetails' :: CaseDetails -> Maybe [Text]
ccEmailAddresses} -> Maybe [Text]
ccEmailAddresses) (\s :: CaseDetails
s@CaseDetails' {} Maybe [Text]
a -> CaseDetails
s {$sel:ccEmailAddresses:CaseDetails' :: Maybe [Text]
ccEmailAddresses = Maybe [Text]
a} :: CaseDetails) ((Maybe [Text] -> f (Maybe [Text]))
-> CaseDetails -> f CaseDetails)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> CaseDetails
-> f CaseDetails
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
caseDetails_displayId :: Lens.Lens' CaseDetails (Prelude.Maybe Prelude.Text)
caseDetails_displayId :: (Maybe Text -> f (Maybe Text)) -> CaseDetails -> f CaseDetails
caseDetails_displayId = (CaseDetails -> Maybe Text)
-> (CaseDetails -> Maybe Text -> CaseDetails)
-> Lens CaseDetails CaseDetails (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CaseDetails' {Maybe Text
displayId :: Maybe Text
$sel:displayId:CaseDetails' :: CaseDetails -> Maybe Text
displayId} -> Maybe Text
displayId) (\s :: CaseDetails
s@CaseDetails' {} Maybe Text
a -> CaseDetails
s {$sel:displayId:CaseDetails' :: Maybe Text
displayId = Maybe Text
a} :: CaseDetails)
caseDetails_submittedBy :: Lens.Lens' CaseDetails (Prelude.Maybe Prelude.Text)
caseDetails_submittedBy :: (Maybe Text -> f (Maybe Text)) -> CaseDetails -> f CaseDetails
caseDetails_submittedBy = (CaseDetails -> Maybe Text)
-> (CaseDetails -> Maybe Text -> CaseDetails)
-> Lens CaseDetails CaseDetails (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CaseDetails' {Maybe Text
submittedBy :: Maybe Text
$sel:submittedBy:CaseDetails' :: CaseDetails -> Maybe Text
submittedBy} -> Maybe Text
submittedBy) (\s :: CaseDetails
s@CaseDetails' {} Maybe Text
a -> CaseDetails
s {$sel:submittedBy:CaseDetails' :: Maybe Text
submittedBy = Maybe Text
a} :: CaseDetails)
caseDetails_language :: Lens.Lens' CaseDetails (Prelude.Maybe Prelude.Text)
caseDetails_language :: (Maybe Text -> f (Maybe Text)) -> CaseDetails -> f CaseDetails
caseDetails_language = (CaseDetails -> Maybe Text)
-> (CaseDetails -> Maybe Text -> CaseDetails)
-> Lens CaseDetails CaseDetails (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CaseDetails' {Maybe Text
language :: Maybe Text
$sel:language:CaseDetails' :: CaseDetails -> Maybe Text
language} -> Maybe Text
language) (\s :: CaseDetails
s@CaseDetails' {} Maybe Text
a -> CaseDetails
s {$sel:language:CaseDetails' :: Maybe Text
language = Maybe Text
a} :: CaseDetails)
caseDetails_timeCreated :: Lens.Lens' CaseDetails (Prelude.Maybe Prelude.Text)
caseDetails_timeCreated :: (Maybe Text -> f (Maybe Text)) -> CaseDetails -> f CaseDetails
caseDetails_timeCreated = (CaseDetails -> Maybe Text)
-> (CaseDetails -> Maybe Text -> CaseDetails)
-> Lens CaseDetails CaseDetails (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CaseDetails' {Maybe Text
timeCreated :: Maybe Text
$sel:timeCreated:CaseDetails' :: CaseDetails -> Maybe Text
timeCreated} -> Maybe Text
timeCreated) (\s :: CaseDetails
s@CaseDetails' {} Maybe Text
a -> CaseDetails
s {$sel:timeCreated:CaseDetails' :: Maybe Text
timeCreated = Maybe Text
a} :: CaseDetails)
caseDetails_categoryCode :: Lens.Lens' CaseDetails (Prelude.Maybe Prelude.Text)
caseDetails_categoryCode :: (Maybe Text -> f (Maybe Text)) -> CaseDetails -> f CaseDetails
caseDetails_categoryCode = (CaseDetails -> Maybe Text)
-> (CaseDetails -> Maybe Text -> CaseDetails)
-> Lens CaseDetails CaseDetails (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CaseDetails' {Maybe Text
categoryCode :: Maybe Text
$sel:categoryCode:CaseDetails' :: CaseDetails -> Maybe Text
categoryCode} -> Maybe Text
categoryCode) (\s :: CaseDetails
s@CaseDetails' {} Maybe Text
a -> CaseDetails
s {$sel:categoryCode:CaseDetails' :: Maybe Text
categoryCode = Maybe Text
a} :: CaseDetails)
caseDetails_serviceCode :: Lens.Lens' CaseDetails (Prelude.Maybe Prelude.Text)
caseDetails_serviceCode :: (Maybe Text -> f (Maybe Text)) -> CaseDetails -> f CaseDetails
caseDetails_serviceCode = (CaseDetails -> Maybe Text)
-> (CaseDetails -> Maybe Text -> CaseDetails)
-> Lens CaseDetails CaseDetails (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CaseDetails' {Maybe Text
serviceCode :: Maybe Text
$sel:serviceCode:CaseDetails' :: CaseDetails -> Maybe Text
serviceCode} -> Maybe Text
serviceCode) (\s :: CaseDetails
s@CaseDetails' {} Maybe Text
a -> CaseDetails
s {$sel:serviceCode:CaseDetails' :: Maybe Text
serviceCode = Maybe Text
a} :: CaseDetails)
instance Core.FromJSON CaseDetails where
parseJSON :: Value -> Parser CaseDetails
parseJSON =
String
-> (Object -> Parser CaseDetails) -> Value -> Parser CaseDetails
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"CaseDetails"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe RecentCaseCommunications
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> CaseDetails
CaseDetails'
(Maybe Text
-> Maybe Text
-> Maybe RecentCaseCommunications
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> CaseDetails)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe RecentCaseCommunications
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> CaseDetails)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"subject")
Parser
(Maybe Text
-> Maybe RecentCaseCommunications
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> CaseDetails)
-> Parser (Maybe Text)
-> Parser
(Maybe RecentCaseCommunications
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> CaseDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"status")
Parser
(Maybe RecentCaseCommunications
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> CaseDetails)
-> Parser (Maybe RecentCaseCommunications)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> CaseDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe RecentCaseCommunications)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"recentCommunications")
Parser
(Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> CaseDetails)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> CaseDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"severityCode")
Parser
(Maybe Text
-> Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> CaseDetails)
-> Parser (Maybe Text)
-> Parser
(Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> CaseDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"caseId")
Parser
(Maybe [Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> CaseDetails)
-> Parser (Maybe [Text])
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> CaseDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ccEmailAddresses"
Parser (Maybe (Maybe [Text]))
-> Maybe [Text] -> Parser (Maybe [Text])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [Text]
forall a. Monoid a => a
Prelude.mempty
)
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> CaseDetails)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> CaseDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"displayId")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> CaseDetails)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text -> Maybe Text -> Maybe Text -> CaseDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"submittedBy")
Parser
(Maybe Text
-> Maybe Text -> Maybe Text -> Maybe Text -> CaseDetails)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> Maybe Text -> CaseDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"language")
Parser (Maybe Text -> Maybe Text -> Maybe Text -> CaseDetails)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> CaseDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"timeCreated")
Parser (Maybe Text -> Maybe Text -> CaseDetails)
-> Parser (Maybe Text) -> Parser (Maybe Text -> CaseDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"categoryCode")
Parser (Maybe Text -> CaseDetails)
-> Parser (Maybe Text) -> Parser CaseDetails
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"serviceCode")
)
instance Prelude.Hashable CaseDetails
instance Prelude.NFData CaseDetails