inputPortsHdmiHdmiPortNumberControlsQuantisationRangeGetSetNullableFromJson function

InputPortsHdmiHdmiPortNumberControlsQuantisationRangeGetSet? inputPortsHdmiHdmiPortNumberControlsQuantisationRangeGetSetNullableFromJson(
  1. Object? inputPortsHdmiHdmiPortNumberControlsQuantisationRangeGetSet, [
  2. InputPortsHdmiHdmiPortNumberControlsQuantisationRangeGetSet? defaultValue
])

Implementation

enums.InputPortsHdmiHdmiPortNumberControlsQuantisationRangeGetSet?
    inputPortsHdmiHdmiPortNumberControlsQuantisationRangeGetSetNullableFromJson(
  Object? inputPortsHdmiHdmiPortNumberControlsQuantisationRangeGetSet, [
  enums.InputPortsHdmiHdmiPortNumberControlsQuantisationRangeGetSet?
      defaultValue,
]) {
  if (inputPortsHdmiHdmiPortNumberControlsQuantisationRangeGetSet == null) {
    return null;
  }
  return enums
          .InputPortsHdmiHdmiPortNumberControlsQuantisationRangeGetSet.values
          .firstWhereOrNull((e) =>
              e.value ==
              inputPortsHdmiHdmiPortNumberControlsQuantisationRangeGetSet) ??
      defaultValue;
}