No title

Anonymous Coward 2018-03-05 03:35:32.004127 UTC

1"{
2"attributes":{"type":"Account","url":"/services/"},"Id":"randomId","Name":"NewAccount"
3}"
4
5
6---- is it possible for my to put the attributes object in SomeType2 Data struct and the remaining fields in SomeType's data_ field(HashMap)?
7
8data SomeType = SomeType
9 { attributes :: SObjectAttr
10 , data_ :: HML.HashMap Text Text
11 } deriving (Generic, Show)
12
13data SomeType2 = SomeType2
14 { type_ :: Text2
15 , url :: Text
16 }