DocumentList.fromMap constructor
Implementation
factory DocumentList.fromMap(Map<String, dynamic> map) {
return DocumentList(
total: map['total'],
documents:
List<Document>.from(map['documents'].map((p) => Document.fromMap(p))),
);
}