inputPortsHdmiHdmiPortNumberDynacalGreenGamutGetSetNullableFromJson function

InputPortsHdmiHdmiPortNumberDynacalGreenGamutGetSet? inputPortsHdmiHdmiPortNumberDynacalGreenGamutGetSetNullableFromJson(
  1. Object? inputPortsHdmiHdmiPortNumberDynacalGreenGamutGetSet, [
  2. InputPortsHdmiHdmiPortNumberDynacalGreenGamutGetSet? defaultValue
])

Implementation

enums.InputPortsHdmiHdmiPortNumberDynacalGreenGamutGetSet?
    inputPortsHdmiHdmiPortNumberDynacalGreenGamutGetSetNullableFromJson(
  Object? inputPortsHdmiHdmiPortNumberDynacalGreenGamutGetSet, [
  enums.InputPortsHdmiHdmiPortNumberDynacalGreenGamutGetSet? defaultValue,
]) {
  if (inputPortsHdmiHdmiPortNumberDynacalGreenGamutGetSet == null) {
    return null;
  }
  return enums.InputPortsHdmiHdmiPortNumberDynacalGreenGamutGetSet.values
          .firstWhereOrNull((e) =>
              e.value == inputPortsHdmiHdmiPortNumberDynacalGreenGamutGetSet) ??
      defaultValue;
}