package eu.eudat.models.data.external;

import java.util.List;
import java.util.Map;


public class ServiceExternalSourcesModel extends ExternalListingItem<ServiceExternalSourcesModel> {
    @Override
    public ServiceExternalSourcesModel fromExternalItem(List<Map<String, String>> values) {
        for (Map<String, String> item : values) {
            ExternalSourcesItemModel model = new ExternalSourcesItemModel();
            model.setId(item.get("pid"));
            model.setUri(item.get("label"));
            model.setName(item.get("name"));
            model.setTag(item.get("tag"));
            this.add(model);
        }
        return this;
    }
}
