rluv_client/lib/models/user.g.dart

34 lines
1.3 KiB
Dart
Raw Normal View History

2023-07-19 02:16:13 -06:00
// 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,
2023-07-27 01:40:26 -06:00
email: json['email'] as String?,
username: json['username'] as String?,
2023-07-19 02:16:13 -06:00
createdAt: dateFromJson(json['created_at'] as int),
updatedAt: dateFromJson(json['updated_at'] as int),
lastActivityAt: dateFromJson(json['last_activity_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> _$UserToJson(User instance) => <String, dynamic>{
'id': instance.id,
'family_id': instance.familyId,
'budget_id': instance.budgetId,
'name': instance.name,
2023-07-27 01:40:26 -06:00
'username': instance.username,
'email': instance.email,
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),
'last_activity_at': dateToJson(instance.lastActivityAt),
};