rluv_client/lib/models/budget.g.dart

28 lines
1.0 KiB
Dart
Raw Normal View History

2023-07-19 02:16:13 -06:00
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'budget.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
Budget _$BudgetFromJson(Map<String, dynamic> json) => Budget(
id: json['id'] as int?,
2023-07-27 01:40:26 -06:00
familyId: json['family_id'] as int,
2023-07-19 02:16:13 -06:00
name: json['name'] as String,
2023-08-17 13:34:30 -06:00
expectedIncome: (json['expected_income'] as num?)?.toDouble(),
2023-07-19 02:16:13 -06:00
createdAt: dateFromJson(json['created_at'] as int),
updatedAt: dateFromJson(json['updated_at'] as int),
2023-07-22 21:29:32 -06:00
hide: json['hide'] == null ? false : boolFromJson(json['hide'] as int),
2023-07-19 02:16:13 -06:00
);
Map<String, dynamic> _$BudgetToJson(Budget instance) => <String, dynamic>{
'id': instance.id,
2023-07-27 01:40:26 -06:00
'family_id': instance.familyId,
2023-08-17 13:34:30 -06:00
'expected_income': instance.expectedIncome,
2023-07-19 02:16:13 -06:00
'name': instance.name,
2023-07-22 21:29:32 -06:00
'hide': boolToJson(instance.hide),
2023-07-19 02:16:13 -06:00
'created_at': dateToJson(instance.createdAt),
'updated_at': dateToJson(instance.updatedAt),
};