Allow mapping input to public properties [updated].

Sometimes when we have a DTO class which will contain a lot of properties (more than 5 or 6 properties), it does not do any good defining all those properties in the constructor.

This PR will allow mapping input to the "public properties" instead of using the constructor.