PasswordChangeRecoverableCustomValidationError.create constructor

PasswordChangeRecoverableCustomValidationError.create(
  1. String message,
  2. String? cause
)

Alternate constructor that creates a PasswordChangeRecoverableCustomValidationError from a json.

Params:

  • message: details about the error that occurred.
  • cause: the exception (if any) that caused this error.

Implementation

factory PasswordChangeRecoverableCustomValidationError.create(
  String message,
  String? cause,
) {
  return PasswordChangeRecoverableCustomValidationErrorImpl(
    cause: cause,
    description: message,
  );
}