feat: Add optional agentTypeId field to RegisterRequest model.

This commit is contained in:
pradeepkumar
2026-03-16 14:23:31 +05:30
parent c4c6322507
commit 9512f5ef8d
8 changed files with 264 additions and 112 deletions

View File

@@ -168,6 +168,7 @@ class AuthNotifier extends StateNotifier<AuthState> {
required String email,
required String password,
required String role,
String? agentTypeId,
}) async {
state = state.copyWith(
status: AuthStatus.loading,
@@ -188,6 +189,7 @@ class AuthNotifier extends StateNotifier<AuthState> {
role: role,
firstName: firstName,
lastName: lastName,
agentTypeId: role == 'AGENT' ? agentTypeId : null,
),
);