create

createFromObject

Will create a DataType object from an object instance. This method will check
if the object o is a MuleMessage instance and will take the type from the message payload
and check if a mime type is set on the message and used that when constructing the DataType
object.

Parameters:

o - an object instance. This can be a MuleMessage, a collection, a proxy instance or any other
object