outputDynacalPanelTypeGreenModeGetSetNullableFromJson function

OutputDynacalPanelTypeGreenModeGetSet? outputDynacalPanelTypeGreenModeGetSetNullableFromJson(
  1. Object? outputDynacalPanelTypeGreenModeGetSet, [
  2. OutputDynacalPanelTypeGreenModeGetSet? defaultValue
])

Implementation

enums.OutputDynacalPanelTypeGreenModeGetSet?
    outputDynacalPanelTypeGreenModeGetSetNullableFromJson(
  Object? outputDynacalPanelTypeGreenModeGetSet, [
  enums.OutputDynacalPanelTypeGreenModeGetSet? defaultValue,
]) {
  if (outputDynacalPanelTypeGreenModeGetSet == null) {
    return null;
  }
  return enums.OutputDynacalPanelTypeGreenModeGetSet.values.firstWhereOrNull(
          (e) => e.value == outputDynacalPanelTypeGreenModeGetSet) ??
      defaultValue;
}