Update ProfileData model to include companies and enhance profile UI
- Added a new field for companies in the ProfileData model to store associated company information. - Updated JSON serialization methods to handle the new companies field. - Modified profile page views to display the user's full name and company name, replacing previous role and department fields for improved clarity. - Introduced new string constants for full name and phone in ProfileStrings.
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
|
||||
import '../company_profile_data/company_profile_data.dart';
|
||||
|
||||
part 'profile_data.freezed.dart';
|
||||
part 'profile_data.g.dart';
|
||||
|
||||
@@ -17,6 +19,7 @@ abstract class ProfileData with _$ProfileData {
|
||||
required String? department,
|
||||
required String? position,
|
||||
required String? phone,
|
||||
required List<CompanyProfileData>? companies,
|
||||
@JsonKey(name: 'profile_image') required String? profileImage,
|
||||
@JsonKey(name: 'is_verified') required bool? isVerified,
|
||||
@JsonKey(name: 'last_login_at') required int? lastLoginAt,
|
||||
|
||||
Reference in New Issue
Block a user