Changed transform method to copy data similar to buildDataType

The transform method hardcoded two additional fields, however there are more fields.  To fix the issue, I changed the transform method to copy data similar to the buildDataType method does with the fields array.