inputPortsHdmiHdmiPortNumberDynacalRedGamutGetSetNullableFromJson function

InputPortsHdmiHdmiPortNumberDynacalRedGamutGetSet? inputPortsHdmiHdmiPortNumberDynacalRedGamutGetSetNullableFromJson(
  1. Object? inputPortsHdmiHdmiPortNumberDynacalRedGamutGetSet, [
  2. InputPortsHdmiHdmiPortNumberDynacalRedGamutGetSet? defaultValue
])

Implementation

enums.InputPortsHdmiHdmiPortNumberDynacalRedGamutGetSet?
    inputPortsHdmiHdmiPortNumberDynacalRedGamutGetSetNullableFromJson(
  Object? inputPortsHdmiHdmiPortNumberDynacalRedGamutGetSet, [
  enums.InputPortsHdmiHdmiPortNumberDynacalRedGamutGetSet? defaultValue,
]) {
  if (inputPortsHdmiHdmiPortNumberDynacalRedGamutGetSet == null) {
    return null;
  }
  return enums.InputPortsHdmiHdmiPortNumberDynacalRedGamutGetSet.values
          .firstWhereOrNull((e) =>
              e.value == inputPortsHdmiHdmiPortNumberDynacalRedGamutGetSet) ??
      defaultValue;
}