com.sparkpost.model.responses.DomainListResponse Maven / Gradle / Ivy
The newest version!
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 DomainListResponse extends Response {
Map> results;
public List getDomainList() {
if (this.results == null) {
return new ArrayList();
}
return this.results.get("domains");
}
}