// GENERATED CODE - DO NOT MODIFY BY HAND part of 'recurring_entry.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** RecurringEntry _$RecurringEntryFromJson(Map json) => RecurringEntry( data: EntryData.fromJson(json['data'] as Map), type: $enumDecode(_$EntryTypeEnumMap, json['type']), date: DateTime.parse(json['date'] as String), category: WalletCategory.fromJson(json['category'] as Map), id: json['id'] as int, recurringType: $enumDecode(_$RecurringTypeEnumMap, json['recurringType']), recurEvery: json['recurEvery'] as int, ); Map _$RecurringEntryToJson(RecurringEntry instance) => { 'type': _$EntryTypeEnumMap[instance.type]!, 'data': instance.data, 'date': instance.date.toIso8601String(), 'category': instance.category, 'id': instance.id, 'recurringType': _$RecurringTypeEnumMap[instance.recurringType]!, 'recurEvery': instance.recurEvery, }; const _$EntryTypeEnumMap = { EntryType.expense: 'expense', EntryType.income: 'income', }; const _$RecurringTypeEnumMap = { RecurringType.byDay: 'byDay', RecurringType.byMonth: 'byMonth', RecurringType.byYear: 'byYear', };