Closed ehsan5 closed 5 years ago
Hi @ehsan5 !
I would follow this steps:
new_object
) should satisfy IDocumentResource or ICacheableDocumentResource interfaces, so you can create a new resource (new_resource
) of the desired type and use new_resource.fill(new_object)
.This way, new_resource
get's filled with the information from new_object
.
Please tell me if this worked for you!
hi, I want to convert string to jsonapi object and resource,Can you help me?