support bool and null values in createWith model attributes