deepClone method

MarshalledObject deepClone()

Deep clones object which is serialisable.

Implementation

MarshalledObject deepClone()
{
  String serialisedString = json.encode(_rawValue);
  return new MarshalledObject( json.decode(serialisedString) );
}