PinChangeRecoverableCustomValidationError.create constructor

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

Alternate constructor that creates a PinChangeRecoverableCustomValidationError from a json.

Params:

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

Implementation

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