29 lines
1.1 KiB
Dart
29 lines
1.1 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'wallet.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
Wallet _$WalletFromJson(Map<String, dynamic> json) => Wallet(
|
|
name: json['name'] as String,
|
|
currency: _currencyFromJson(json['currency'] as Map<String, dynamic>),
|
|
categories: (json['categories'] as List<dynamic>?)
|
|
?.map((e) => WalletCategory.fromJson(e as Map<String, dynamic>))
|
|
.toList() ??
|
|
const [],
|
|
entries: (json['entries'] as List<dynamic>?)
|
|
?.map((e) => WalletEntry.fromJson(e as Map<String, dynamic>))
|
|
.toList() ??
|
|
const [],
|
|
availableAmount: (json['availableAmount'] as num?)?.toDouble() ?? 0,
|
|
);
|
|
|
|
Map<String, dynamic> _$WalletToJson(Wallet instance) => <String, dynamic>{
|
|
'name': instance.name,
|
|
'categories': instance.categories,
|
|
'entries': instance.entries,
|
|
'availableAmount': instance.availableAmount,
|
|
'currency': instance.currency,
|
|
};
|