CategoryList.fromJson constructor

CategoryList.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory CategoryList.fromJson(Map<String, dynamic> json) {
  return CategoryList(
    json['errno'] as int,
    json['errmsg'] as String,
    json['has_more'] as int,
    json['cursor'] as int,
    (json['list'] as List).map((e) => CategoryItem.fromJson(e)).toList(),
  );
}