Honor flattened attribute in model for rest-json

Wrapper xml element should be excluded if flattened is `True`.