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