I have an object of
class Employee {
private String salary;
private String empId;
private String departmentId;
private String status;
}
and one method that returns Flux <Document>, Document is of type org.bson.Document, example
[
{
"empId": "B123",
"salary": "1000",
"departmentId": "winna",
"status": "START"
},
{
"empId": "A123",
"salary": "2000",
"departmentId": "dinna",
"status": "COMPLETED"
}
]
How to convert Flux <Document> to Flux <Employee> or List <Employee> in JAVA?
