- Replace dart:js with package:js in health_check_service_web.dart\n- Implement showHealthCheckNotification in web/index.html\n- Pin js dependency to ^0.6.7 for flutter_secure_storage_web compatibility auth: harden AuthInterceptor + tests - Allow overrideAuthRepository injection for testing\n- Normalize imports to package: paths\n- Add unit test covering token attach, 401→refresh→retry, and failure path\n- Add integration test skeleton gated by env vars ui/data: map User.companyName to list column - Add companyName to domain User\n- Map UserDto.company?.name\n- Render companyName in user_list cleanup: remove legacy equipment table + unused code; minor warnings - Remove _buildFlexibleTable and unused helpers\n- Remove unused zipcode details and cache retry constant\n- Fix null-aware and non-null assertions\n- Address child-last warnings in administrator dialog docs: update AGENTS.md session context
46 lines
1.5 KiB
Dart
46 lines
1.5 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'user_model.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
_$UserImpl _$$UserImplFromJson(Map<String, dynamic> json) => _$UserImpl(
|
|
id: (json['id'] as num?)?.toInt(),
|
|
name: json['name'] as String,
|
|
email: json['email'] as String?,
|
|
phone: json['phone'] as String?,
|
|
companyName: json['companyName'] as String?,
|
|
username: json['username'] as String? ?? '',
|
|
role: $enumDecodeNullable(_$UserRoleEnumMap, json['role']) ??
|
|
UserRole.staff,
|
|
isActive: json['isActive'] as bool? ?? true,
|
|
createdAt: json['createdAt'] == null
|
|
? null
|
|
: DateTime.parse(json['createdAt'] as String),
|
|
updatedAt: json['updatedAt'] == null
|
|
? null
|
|
: DateTime.parse(json['updatedAt'] as String),
|
|
);
|
|
|
|
Map<String, dynamic> _$$UserImplToJson(_$UserImpl instance) =>
|
|
<String, dynamic>{
|
|
'id': instance.id,
|
|
'name': instance.name,
|
|
'email': instance.email,
|
|
'phone': instance.phone,
|
|
'companyName': instance.companyName,
|
|
'username': instance.username,
|
|
'role': _$UserRoleEnumMap[instance.role]!,
|
|
'isActive': instance.isActive,
|
|
'createdAt': instance.createdAt?.toIso8601String(),
|
|
'updatedAt': instance.updatedAt?.toIso8601String(),
|
|
};
|
|
|
|
const _$UserRoleEnumMap = {
|
|
UserRole.admin: 'admin',
|
|
UserRole.manager: 'manager',
|
|
UserRole.staff: 'staff',
|
|
};
|