Initialize properties with map
properties
@protected void fromMap(Map<String, dynamic> props) { for (var propertyName in props.keys.toList()) { properties[propertyName] = props[propertyName]; } }