ReportPage page = (ReportPage) report;
Map<String, Object> reportPagePropMap = objectMapper.convertValue(page, // failing here
new TypeReference<Map<String, Object>>() {
});
Where ReportPage is a slingModel defined as
@Model(adaptables=org.apache.sling.api.resource.Resource.class,defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL)
public class ReportPage {
@Deleted Account
private Resource resource;
Views
Replies
Total Likes
Can you provide more info exactly you want to do in the model class?
Sample Code or Logic that you want to achieve?
Thanks,
Veena K