mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-21 19:28:27 +08:00
13
lib/models_new/bubble/category.dart
Normal file
13
lib/models_new/bubble/category.dart
Normal file
@@ -0,0 +1,13 @@
|
||||
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(),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user