DocumentList.fromMap constructor

DocumentList.fromMap(
  1. Map<String, dynamic> map
)

Implementation

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