I'm doing a java program using api rest to connect and get data from the database.
For now I have the following classes: And the json corresponding to the information of the users are:
{
"id": "1",
"name": "ejemplo",
"email": "[email protected]"
}
How can I pass the information of this user to the "User" type in order to access the corresponding methods getEmail()
and getNombre()
?