mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
14 lines
378 B
Dart
14 lines
378 B
Dart
import 'package:PiliPlus/models_new/bubble/category_list.dart';
|
|
|
|
class Category {
|
|
List<CategoryList>? categoryList;
|
|
|
|
Category({this.categoryList});
|
|
|
|
factory Category.fromJson(Map<String, dynamic> json) => Category(
|
|
categoryList: (json['category_list'] as List<dynamic>?)
|
|
?.map((e) => CategoryList.fromJson(e as Map<String, dynamic>))
|
|
.toList(),
|
|
);
|
|
}
|