com.sparkpost.model.responses.CampaignListResponse Maven / Gradle / Ivy
package com.sparkpost.model.responses;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode(callSuper = true)
public class CampaignListResponse extends Response {
Map> results;
public List getCampaignList() {
if (this.results == null) {
return new ArrayList();
}
return this.results.get("campaigns");
}
}