Search in sources :

Example 1 with ClientDocumentMapper

use of io.crnk.client.internal.ClientDocumentMapper in project crnk-framework by crnk-project.

the class OperationsCall method fromResource.

protected <T> T fromResource(Document document, Class<T> clazz) {
    CrnkClient crnk = client.getCrnk();
    ClientDocumentMapper documentMapper = crnk.getDocumentMapper();
    return (T) documentMapper.fromDocument(document, false);
}
Also used : CrnkClient(io.crnk.client.CrnkClient) ClientDocumentMapper(io.crnk.client.internal.ClientDocumentMapper)

Aggregations

CrnkClient (io.crnk.client.CrnkClient)1 ClientDocumentMapper (io.crnk.client.internal.ClientDocumentMapper)1