deserialize does not deserializer links inside relationships objects
Example payload to deserialize = {
links: {
prev: 'https://prevLink',
next: 'https://nextLink'
},
data: [
{
type: 'myType',
id: '1',
attributes: {
name: 'Type1',
accountGuid: 'acctguid',
},
links: {
self: 'https://selfLink'
},
relationships: {
myObj: {
links: {
related: {
href: 'http://somelink',
meta: {
count: 4
}
}
}
}
}
}
]
}
Output = {
accountGuid: "acctguid",
id: "1",
links:,
next: "https://nextLink",
prev: "https://prevLink",
name: "Type1",
}