Closed mirmousaviii closed 7 years ago
@kamikat Can you help me?
response.body().getDocument().included.get(0)
gets just an instance of class with @JsonApi(type = "ccc")
in your example. And you can access its fields (attributes/relationships) after cast to corresponding class.
BTW, Document.included
is made unaccessible in 3.0. Could you please provide more detail about your practice?
It's resolved after cast to corresponding class. @kamikat Thank you for every help. Thank you.
I use retrofit and I need get data from included. response:
I can get Id and Type with
response.body().getDocument().included.get(0).getId()
, But How can I get attributes from included? for example title and descriptionThank you.