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