17a3a1ce20
Reviewed-on: #20
31 lines
1 KiB
Dart
31 lines
1 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'wallet_entry.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
WalletSingleEntry _$WalletSingleEntryFromJson(Map<String, dynamic> json) =>
|
|
WalletSingleEntry(
|
|
data: EntryData.fromJson(json['data'] as Map<String, dynamic>),
|
|
type: $enumDecode(_$EntryTypeEnumMap, json['type']),
|
|
date: DateTime.parse(json['date'] as String),
|
|
category:
|
|
WalletCategory.fromJson(json['category'] as Map<String, dynamic>),
|
|
id: json['id'] as int,
|
|
);
|
|
|
|
Map<String, dynamic> _$WalletSingleEntryToJson(WalletSingleEntry instance) =>
|
|
<String, dynamic>{
|
|
'type': _$EntryTypeEnumMap[instance.type]!,
|
|
'data': instance.data,
|
|
'date': instance.date.toIso8601String(),
|
|
'category': instance.category,
|
|
'id': instance.id,
|
|
};
|
|
|
|
const _$EntryTypeEnumMap = {
|
|
EntryType.expense: 'expense',
|
|
EntryType.income: 'income',
|
|
};
|