processingColourReplaceMethodGetSetNullableFromJson function
ProcessingColourReplaceMethodGetSet?
processingColourReplaceMethodGetSetNullableFromJson(
- Object? processingColourReplaceMethodGetSet, [
- ProcessingColourReplaceMethodGetSet? defaultValue
Implementation
enums.ProcessingColourReplaceMethodGetSet?
processingColourReplaceMethodGetSetNullableFromJson(
Object? processingColourReplaceMethodGetSet, [
enums.ProcessingColourReplaceMethodGetSet? defaultValue,
]) {
if (processingColourReplaceMethodGetSet == null) {
return null;
}
return enums.ProcessingColourReplaceMethodGetSet.values.firstWhereOrNull(
(e) => e.value == processingColourReplaceMethodGetSet) ??
defaultValue;
}