GenericDocumentWrappedResults.fromGenericDocumentResults constructor
GenericDocumentWrappedResults.fromGenericDocumentResults(
- GenericDocumentResults results
Implementation
factory GenericDocumentWrappedResults.fromGenericDocumentResults(
GenericDocumentResults results) {
List<GenericDocumentWrapper> documents = [];
results.documents.forEach((element) {
documents.add(GenericDocumentWrapper.fromGenericDocument(element));
});
return GenericDocumentWrappedResults(documents);
}