outputDynacalPanelTypeRedModeGetSetNullableFromJson function

OutputDynacalPanelTypeRedModeGetSet? outputDynacalPanelTypeRedModeGetSetNullableFromJson(
  1. Object? outputDynacalPanelTypeRedModeGetSet, [
  2. OutputDynacalPanelTypeRedModeGetSet? defaultValue
])

Implementation

enums.OutputDynacalPanelTypeRedModeGetSet?
    outputDynacalPanelTypeRedModeGetSetNullableFromJson(
  Object? outputDynacalPanelTypeRedModeGetSet, [
  enums.OutputDynacalPanelTypeRedModeGetSet? defaultValue,
]) {
  if (outputDynacalPanelTypeRedModeGetSet == null) {
    return null;
  }
  return enums.OutputDynacalPanelTypeRedModeGetSet.values.firstWhereOrNull(
          (e) => e.value == outputDynacalPanelTypeRedModeGetSet) ??
      defaultValue;
}