rluv_client/lib/models/budget_category_model.g.dart

32 lines
1.2 KiB
Dart
Raw Normal View History

2023-07-19 02:16:13 -06:00
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'budget_category_model.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
BudgetCategory _$BudgetCategoryFromJson(Map<String, dynamic> json) =>
BudgetCategory(
id: json['id'] as int?,
budgetId: json['budget_id'] as int,
name: json['name'] as String,
color: colorFromJson(json['color'] as String),
createdAt: dateFromJson(json['created_at'] as int),
2023-07-22 21:29:32 -06:00
updatedAt: dateFromJson(json['updated_at'] as int),
2023-07-19 02:16:13 -06:00
amount: (json['amount'] as num).toDouble(),
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> _$BudgetCategoryToJson(BudgetCategory instance) =>
<String, dynamic>{
'budget_id': instance.budgetId,
'id': instance.id,
'name': instance.name,
'amount': instance.amount,
2023-07-22 21:29:32 -06:00
'hide': boolToJson(instance.hide),
2023-07-19 02:16:13 -06:00
'color': colorToJson(instance.color),
'created_at': dateToJson(instance.createdAt),
2023-07-22 21:29:32 -06:00
'updated_at': dateToJson(instance.updatedAt),
2023-07-19 02:16:13 -06:00
};