42 lines
786 B
Java
42 lines
786 B
Java
package eu.dnetlib.ariadneplus.elasticsearch.model;
|
|
|
|
import com.google.gson.Gson;
|
|
|
|
public class NativePeriod {
|
|
private String from;
|
|
private String periodName;
|
|
private String until;
|
|
|
|
public String getFrom() {
|
|
return from;
|
|
}
|
|
|
|
public void setFrom(String from) {
|
|
this.from = from;
|
|
}
|
|
|
|
public String getPeriodName() {
|
|
return periodName;
|
|
}
|
|
|
|
public void setPeriodName(String periodName) {
|
|
this.periodName = periodName;
|
|
}
|
|
|
|
public String getUntil() {
|
|
return until;
|
|
}
|
|
|
|
public void setUntil(String until) {
|
|
this.until = until;
|
|
}
|
|
|
|
public NativePeriod() {
|
|
}
|
|
|
|
public static NativePeriod fromJson(String json){
|
|
return new Gson().fromJson(json, NativePeriod.class);
|
|
}
|
|
|
|
}
|