28 lines
1.0 KiB
Dart
28 lines
1.0 KiB
Dart
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||
|
|
||
|
part of 'user.dart';
|
||
|
|
||
|
// **************************************************************************
|
||
|
// JsonSerializableGenerator
|
||
|
// **************************************************************************
|
||
|
|
||
|
User _$UserFromJson(Map<String, dynamic> json) => User(
|
||
|
id: json['id'] as int?,
|
||
|
name: json['name'] as String,
|
||
|
familyId: json['family_id'] as int,
|
||
|
budgetId: json['budget_id'] as int,
|
||
|
createdAt: dateFromJson(json['created_at'] as int),
|
||
|
updatedAt: dateFromJson(json['updated_at'] as int),
|
||
|
lastActivityAt: dateFromJson(json['last_activity_at'] as int),
|
||
|
);
|
||
|
|
||
|
Map<String, dynamic> _$UserToJson(User instance) => <String, dynamic>{
|
||
|
'id': instance.id,
|
||
|
'family_id': instance.familyId,
|
||
|
'budget_id': instance.budgetId,
|
||
|
'name': instance.name,
|
||
|
'created_at': dateToJson(instance.createdAt),
|
||
|
'updated_at': dateToJson(instance.updatedAt),
|
||
|
'last_activity_at': dateToJson(instance.lastActivityAt),
|
||
|
};
|