PinEnrollmentCustomValidationError.create constructor
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,
);
}