Open
Description
Hi, what is the best to handle when we got name: {}
(this is from nodejs backend) response from api service, meanwhile what i want is to assume it is 'name: {first: "", last: ""}` so I can parse it to
Person {firstName :: Maybe Text, lastName :: Maybe Text}
?
supposed that I have the following types:
https://gist.github.com/Rizary/3b3865a145853cf04df7fad4e348a5c3
I finally use optional
but actually that's not what I want, because I can't parsed the name: {}
as name: {first: "", last: ""}