I have a entity object like this:
class Person{
private String name;
private String class;
private String semester;
}
Now I have a map like this: Map<String,String>
{
"name":"Giri"
"class":"12"
"semester":"C"
}
Now I want to convert this map to a Person object where each field in object corresponds to that field in map.
How can I do this?
Thanks