mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-26 12:07:11 +08:00
14 lines
307 B
Dart
14 lines
307 B
Dart
class Category {
|
|
int? id;
|
|
int? parentId;
|
|
String? name;
|
|
|
|
Category({this.id, this.parentId, this.name});
|
|
|
|
factory Category.fromJson(Map<String, dynamic> json) => Category(
|
|
id: json['id'] as int?,
|
|
parentId: json['parent_id'] as int?,
|
|
name: json['name'] as String?,
|
|
);
|
|
}
|