deserialize method

bool deserialize(
  1. List<PropertyValue> properties
)
Import properties from bytes array.

Implementation

bool deserialize(List<PropertyValue> properties) {
  for (var i = 0; i < properties.length; i++) {
    var pt = _template.getPropertyTemplateByIndex(i);
    if (pt != null) {
      var pv = properties[i];
      loadProperty(pt.name, pv.age, pv.date, pv.value);
    }
  }

  return true;
}