mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-20 17:16:29 +08:00
@@ -4,16 +4,16 @@ part 'category.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class Category {
|
||||
int? id;
|
||||
@JsonKey(name: 'parent_id')
|
||||
int? parentId;
|
||||
String? name;
|
||||
int? id;
|
||||
@JsonKey(name: 'parent_id')
|
||||
int? parentId;
|
||||
String? name;
|
||||
|
||||
Category({this.id, this.parentId, this.name});
|
||||
Category({this.id, this.parentId, this.name});
|
||||
|
||||
factory Category.fromJson(Map<String, dynamic> json) {
|
||||
return _$CategoryFromJson(json);
|
||||
}
|
||||
factory Category.fromJson(Map<String, dynamic> json) {
|
||||
return _$CategoryFromJson(json);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => _$CategoryToJson(this);
|
||||
Map<String, dynamic> toJson() => _$CategoryToJson(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user