prasule/lib/api/entry_data.g.dart

20 lines
693 B
Dart
Raw Permalink Normal View History

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'entry_data.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
EntryData _$EntryDataFromJson(Map<String, dynamic> json) => EntryData(
name: json['name'] as String? ?? 'Unknown',
amount: (json['amount'] as num?)?.toDouble() ?? 0,
description: json['description'] as String? ?? '',
);
Map<String, dynamic> _$EntryDataToJson(EntryData instance) => <String, dynamic>{
'name': instance.name,
'description': instance.description,
'amount': instance.amount,
};