PasswordEnrollmentCustomValidationError.create constructor
Alternate constructor that creates a PasswordEnrollmentCustomValidationError from a json.
Params:
- errorMessage: details about the error that occurred.
- cause: the exception (if any) that caused this error.
Implementation
factory PasswordEnrollmentCustomValidationError.create(
String errorMessage,
String? cause,
) {
return PasswordEnrollmentCustomValidationErrorImpl(
cause: cause,
description: errorMessage,
);
}