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