29 lines
893 B
Dart
29 lines
893 B
Dart
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||
|
|
||
|
part of 'category.dart';
|
||
|
|
||
|
// **************************************************************************
|
||
|
// JsonSerializableGenerator
|
||
|
// **************************************************************************
|
||
|
|
||
|
WalletCategory _$WalletCategoryFromJson(Map<String, dynamic> json) =>
|
||
|
WalletCategory(
|
||
|
name: json['name'] as String,
|
||
|
type: $enumDecode(_$EntryTypeEnumMap, json['type']),
|
||
|
id: json['id'] as int,
|
||
|
icon: _iconDataFromJson(json['icon'] as Map<String, dynamic>),
|
||
|
);
|
||
|
|
||
|
Map<String, dynamic> _$WalletCategoryToJson(WalletCategory instance) =>
|
||
|
<String, dynamic>{
|
||
|
'type': _$EntryTypeEnumMap[instance.type]!,
|
||
|
'name': instance.name,
|
||
|
'id': instance.id,
|
||
|
'icon': _iconDataToJson(instance.icon),
|
||
|
};
|
||
|
|
||
|
const _$EntryTypeEnumMap = {
|
||
|
EntryType.expense: 'expense',
|
||
|
EntryType.income: 'income',
|
||
|
};
|