27 lines
772 B
Dart
27 lines
772 B
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'debt_person.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
DebtPerson _$DebtPersonFromJson(Map<String, dynamic> json) {
|
|
$checkKeys(
|
|
json,
|
|
requiredKeys: const ['id'],
|
|
disallowNullValues: const ['id'],
|
|
);
|
|
return DebtPerson(
|
|
id: (json['id'] as num).toInt(),
|
|
name: json['name'] as String? ?? 'Unknown',
|
|
bankAccount: json['bankAccount'] as String?,
|
|
);
|
|
}
|
|
|
|
Map<String, dynamic> _$DebtPersonToJson(DebtPerson instance) =>
|
|
<String, dynamic>{
|
|
'id': instance.id,
|
|
'name': instance.name,
|
|
'bankAccount': instance.bankAccount,
|
|
};
|