TopicList.fromMap constructor

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

Implementation

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