putObjectList method

BatchEventAttributes putObjectList(
  1. String key,
  2. List<BatchEventAttributes> value
)

Add an Object List attribute for the given key.

The attribute key should be a string composed of letters, numbers or underscores ([a-z0-9_]) and can't be longer than 30 characters.

Implementation

BatchEventAttributes putObjectList(String key, List<BatchEventAttributes> value) {
  List array = [];
  value.forEach((element) {
    array.add(element.internalGetBridgeRepresentation());
  });
  _attributes[key.toLowerCase()] = TypedAttribute(type: TypedAttributeType.object_array, value: array);
  return this;
}