34 lines
1.3 KiB
Dart
34 lines
1.3 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,
|
|
email: json['email'] as String?,
|
|
username: json['username'] as String?,
|
|
createdAt: dateFromJson(json['created_at'] as int),
|
|
updatedAt: dateFromJson(json['updated_at'] as int),
|
|
lastActivityAt: dateFromJson(json['last_activity_at'] as int),
|
|
hide: json['hide'] == null ? false : boolFromJson(json['hide'] as int),
|
|
);
|
|
|
|
Map<String, dynamic> _$UserToJson(User instance) => <String, dynamic>{
|
|
'id': instance.id,
|
|
'family_id': instance.familyId,
|
|
'budget_id': instance.budgetId,
|
|
'name': instance.name,
|
|
'username': instance.username,
|
|
'email': instance.email,
|
|
'hide': boolToJson(instance.hide),
|
|
'created_at': dateToJson(instance.createdAt),
|
|
'updated_at': dateToJson(instance.updatedAt),
|
|
'last_activity_at': dateToJson(instance.lastActivityAt),
|
|
};
|