Generate the serialized form of a typed instance.
connection.serializeInstance( instance )
Generate a raw object representation of a typed instance. This default implementation simply clones the
instance object, copying all the properties of the object (excluding properties of it's prototypes) to a new
object. This is equivalent to
the instance to serialize
a serialized representation of the instance