CollectionList.fromMap constructor

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

Implementation

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