What is the equivalent of this code if using Sling Model
Code Snippet
final Resource jcrResource = resource.getChild("jcr:content");
final ValueMap valueMap = jcrResource.adaptTo(ValueMap.class);
final String title = valueMap.get("jcr:title", ""); // GETTING THE TITLE POPULATED WITH SOME VALUE
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Here is what I tried, but it does not work:
@ValueMapValue(name = "jcr:title", optional = true)
private String title; // TITLE IS NOT GETTING POPULATED

