How can we convert the Flux< Employe> to Mono< Customers > object?
Flux< Employe> empFlux = getService(); // It will return list of Employe Employe { private String id; private String info;}
// need transform the empFlux data to Mono< Customers>
public class CusData {
private String id;
private String dept;
private String info;
public String getId() {
return id;
}
}
public class Customers {
private List<CusData> cusDataList;
public List<CusData> getCusDataList() {
return cusDataList;
}
public void setCusDataList(List<CusData> cusDataList) {
this.cusDataList = cusDataList;
}
} public class Employe {
private String id;
private String info;
}