support for model constructor and currently implementing mapAttribute method