fromAttributeValues static method

dynamic fromAttributeValues(
  1. List<TrackedEntityAttributeValue> attributeValues
)

Implementation

static fromAttributeValues(
    List<TrackedEntityAttributeValue> attributeValues) {
  Map<String, DataValueObject> entities = {};

  attributeValues.forEach((attributeValue) {
    entities[attributeValue.attribute] = DataValueObject(
        id: attributeValue.attribute, value: attributeValue.value);
  });

  return entities;
}