In this version, we have performed the list of steps :

1. We have created a function to get all the details of the user from database.
2. We have successfully performed all the steps programatically in the code to get the data of user from database and converted it into the data model class.