registerUser method

  1. @override
Future<LoginModel> registerUser({
  1. String? username,
  2. String? name,
  3. String? email,
  4. String? phone,
  5. String? address,
  6. required String password,
  7. String? role,
  8. String? subRole,
  9. String? schoolId,
  10. String? panel,
})
override

Implementation

@override
Future<LoginModel> registerUser({
  String? username,
   String? name,
   String? email,
   String? phone,
  String? address,
  required String password,
  String? role,
  String? subRole,
  String? schoolId,
  String? panel,
}) async {
  final model = RegisterRequestModel(
    name: name,
    email: email,
    phone: phone,
    password: password,
    username: username,
    role: role,
    subrole: subRole,
    schoolId: schoolId,
    panel: panel

  );
  final data = await iAuthRemoteRepository.registerUser(model);
  return data;
}