inputPortsHdmiHdmiPortNumberDynacalWhiteGamutGetSetNullableFromJson function

InputPortsHdmiHdmiPortNumberDynacalWhiteGamutGetSet? inputPortsHdmiHdmiPortNumberDynacalWhiteGamutGetSetNullableFromJson(
  1. Object? inputPortsHdmiHdmiPortNumberDynacalWhiteGamutGetSet, [
  2. InputPortsHdmiHdmiPortNumberDynacalWhiteGamutGetSet? defaultValue
])

Implementation

enums.InputPortsHdmiHdmiPortNumberDynacalWhiteGamutGetSet?
    inputPortsHdmiHdmiPortNumberDynacalWhiteGamutGetSetNullableFromJson(
  Object? inputPortsHdmiHdmiPortNumberDynacalWhiteGamutGetSet, [
  enums.InputPortsHdmiHdmiPortNumberDynacalWhiteGamutGetSet? defaultValue,
]) {
  if (inputPortsHdmiHdmiPortNumberDynacalWhiteGamutGetSet == null) {
    return null;
  }
  return enums.InputPortsHdmiHdmiPortNumberDynacalWhiteGamutGetSet.values
          .firstWhereOrNull((e) =>
              e.value == inputPortsHdmiHdmiPortNumberDynacalWhiteGamutGetSet) ??
      defaultValue;
}