You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const oneBook = {
"book": {
"title": "Zombies in western culture",
"serie": {
"name": "Open Reports Series"
}
}
}
const serieReviver = new SerieReviver()
const bookReviver = new BookReviver(serieReviver)
const book = bookReviver.main(oneBook.book)
to get a Book we have to send oneBook.book instead of oneBook.
Maybe we should change the AbstractReviver::main to allow to get automatically the root node:
IF the propertyPath is on the root AND this.getNodeName is found in the content HEN take it and send to initFromJon
The text was updated successfully, but these errors were encountered:
For instance here is what we have to do:
to get a Book we have to send oneBook.book instead of oneBook.
Maybe we should change the AbstractReviver::main to allow to get automatically the root node:
The text was updated successfully, but these errors were encountered: