32 lines
650 B
Java
32 lines
650 B
Java
package eu.dnetlib.ariadneplus.elasticsearch.model;
|
|
|
|
import com.google.gson.Gson;
|
|
|
|
public class DerivedSubject {
|
|
private String prefLabel;
|
|
private String source;
|
|
|
|
public String getPrefLabel() {
|
|
return prefLabel;
|
|
}
|
|
|
|
public void setPrefLabel(String prefLabel) {
|
|
this.prefLabel = prefLabel;
|
|
}
|
|
|
|
public String getSource() {
|
|
return source;
|
|
}
|
|
|
|
public void setSource(String source) {
|
|
this.source = source;
|
|
}
|
|
|
|
public DerivedSubject() {
|
|
}
|
|
|
|
public static DerivedSubject fromJson(String json){
|
|
return new Gson().fromJson(json, DerivedSubject.class);
|
|
}
|
|
}
|