prasule/lib/api/debt_entry.g.dart

24 lines
813 B
Dart
Raw Normal View History

2024-07-17 16:44:02 +02:00
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'debt_entry.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
DebtEntry _$DebtEntryFromJson(Map<String, dynamic> json) => DebtEntry(
id: (json['id'] as num).toInt(),
amount: (json['amount'] as num).toInt(),
name: json['name'] as String,
whoPayed: (json['whoPayed'] as List<dynamic>)
.map((e) => DebtPerson.fromJson(e as Map<String, dynamic>))
.toList(),
);
Map<String, dynamic> _$DebtEntryToJson(DebtEntry instance) => <String, dynamic>{
'id': instance.id,
'amount': instance.amount,
'name': instance.name,
'whoPayed': instance.whoPayed,
};