// GENERATED CODE - DO NOT MODIFY BY HAND part of 'wallet.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** Wallet _$WalletFromJson(Map json) => Wallet( name: json['name'] as String, currency: _currencyFromJson(json['currency'] as Map), categories: (json['categories'] as List?) ?.map((e) => WalletCategory.fromJson(e as Map)) .toList() ?? const [], entries: (json['entries'] as List?) ?.map( (e) => WalletSingleEntry.fromJson(e as Map)) .toList() ?? const [], starterBalance: (json['starterBalance'] as num?)?.toDouble() ?? 0, recurringEntries: (json['recurringEntries'] as List?) ?.map((e) => RecurringEntry.fromJson(e as Map)) .toList() ?? const [], ); Map _$WalletToJson(Wallet instance) => { 'name': instance.name, 'categories': instance.categories, 'entries': instance.entries, 'recurringEntries': instance.recurringEntries, 'starterBalance': instance.starterBalance, 'currency': instance.currency, };