inputPortsHdmiHdmiPortNumberDynacalBlueGamutGetSetNullableFromJson function

InputPortsHdmiHdmiPortNumberDynacalBlueGamutGetSet? inputPortsHdmiHdmiPortNumberDynacalBlueGamutGetSetNullableFromJson(
  1. Object? inputPortsHdmiHdmiPortNumberDynacalBlueGamutGetSet, [
  2. InputPortsHdmiHdmiPortNumberDynacalBlueGamutGetSet? defaultValue
])

Implementation

enums.InputPortsHdmiHdmiPortNumberDynacalBlueGamutGetSet?
    inputPortsHdmiHdmiPortNumberDynacalBlueGamutGetSetNullableFromJson(
  Object? inputPortsHdmiHdmiPortNumberDynacalBlueGamutGetSet, [
  enums.InputPortsHdmiHdmiPortNumberDynacalBlueGamutGetSet? defaultValue,
]) {
  if (inputPortsHdmiHdmiPortNumberDynacalBlueGamutGetSet == null) {
    return null;
  }
  return enums.InputPortsHdmiHdmiPortNumberDynacalBlueGamutGetSet.values
          .firstWhereOrNull((e) =>
              e.value == inputPortsHdmiHdmiPortNumberDynacalBlueGamutGetSet) ??
      defaultValue;
}