Refactored DeviceConfigDto to produce nicer JSON