mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
20 lines
641 B
Dart
20 lines
641 B
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'category.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
Category _$CategoryFromJson(Map<String, dynamic> json) => Category(
|
|
id: (json['id'] as num?)?.toInt(),
|
|
parentId: (json['parent_id'] as num?)?.toInt(),
|
|
name: json['name'] as String?,
|
|
);
|
|
|
|
Map<String, dynamic> _$CategoryToJson(Category instance) => <String, dynamic>{
|
|
'id': instance.id,
|
|
'parent_id': instance.parentId,
|
|
'name': instance.name,
|
|
};
|