to_hash on model object