processingColourReplaceMethodGetSetNullableFromJson function

ProcessingColourReplaceMethodGetSet? processingColourReplaceMethodGetSetNullableFromJson(
  1. Object? processingColourReplaceMethodGetSet, [
  2. 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;
}