infinum/kotlin-jsonapix

Access to id, type

Closed this issue · 1 comments

Hi,

This is not an issue, just a question:

Is there any way to get access to the id, type?

{
  "data": {
    "type": "some-type",
    "id": "some-id"
  }
}

toResourceObject enables access to "type" but "id" is always 0 - but I think it's by design

At the moment no, but this is a planned feature for the next release. Thanks for your question!