PinEnrollmentCustomValidationError.create constructor

PinEnrollmentCustomValidationError.create(
  1. String errorMessage,
  2. String? cause
)

Alternate constructor that creates a PinEnrollmentCustomValidationError from a json.

Params:

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

Implementation

factory PinEnrollmentCustomValidationError.create(
  String errorMessage,
  String? cause,
) {
  return PinEnrollmentCustomValidationErrorImpl(
    cause: cause,
    description: errorMessage,
  );
}