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) {
switch (string) {
case "empty":
return PdfCombinerStatus.empty;
case "success":
return PdfCombinerStatus.success;
case "error":
return PdfCombinerStatus.error;
case "processing":
return PdfCombinerStatus.processing;
default:
return PdfCombinerStatus.unknown;
}
}