prasule/lib/api/debt_entry.g.dart

23 lines
813 B
Dart

// 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,
};