fromValue static method
Gets a possible PrintJobDuplexMode instance from String value.
Implementation
static PrintJobDuplexMode? fromValue(String? value) {
if (value != null) {
try {
return PrintJobDuplexMode.values
.firstWhere((element) => element.toValue() == value);
} catch (e) {
return null;
}
}
return null;
}