I need to mapped a model object, which extends into the object to be inizialized.
Example:
class User{
}
class RequestUser extends User{
}
void main(){
User user = new User();
RequestUser reqUser = user;
}
Is there a way to do it native ?, or should I use an external library? Which do you recommend?
Thanks!