setPropertiesFrom method

void setPropertiesFrom(
  1. MarshalledObject other
)

Copies all properties from other object to this object

Implementation

void setPropertiesFrom(MarshalledObject other)
{
  Iterable<String> properties = other.getProperties();

  Map<String, dynamic> rawValue = _castToMap();
  Map<String, dynamic> otherRawValue = other.getRawValueAs< Map<String, dynamic> >();

  for (String property in properties)
  {
    rawValue[property] = otherRawValue[property];
  }
}