from static method
Converts a string
into a corresponding PdfCombinerStatus value.
If the string matches one of the predefined statuses (empty
, success
,
error
, processing
), the corresponding enum value is returned.
Otherwise, it returns PdfCombinerStatus.unknown
.
This method allows for easy mapping of string-based statuses to the PdfCombinerStatus enum.
Example:
var status = PdfCombinerStatus.from("success");
// status == PdfCombinerStatus.success
Implementation
static PdfCombinerStatus from(String string) {
if (string == "success") {
return PdfCombinerStatus.success;
} else {
return PdfCombinerStatus.error;
}
}