inputPortsDviDviPortNumberDynacalRedGamutGetSetNullableFromJson function

InputPortsDviDviPortNumberDynacalRedGamutGetSet? inputPortsDviDviPortNumberDynacalRedGamutGetSetNullableFromJson(
  1. Object? inputPortsDviDviPortNumberDynacalRedGamutGetSet, [
  2. InputPortsDviDviPortNumberDynacalRedGamutGetSet? defaultValue
])

Implementation

enums.InputPortsDviDviPortNumberDynacalRedGamutGetSet?
    inputPortsDviDviPortNumberDynacalRedGamutGetSetNullableFromJson(
  Object? inputPortsDviDviPortNumberDynacalRedGamutGetSet, [
  enums.InputPortsDviDviPortNumberDynacalRedGamutGetSet? defaultValue,
]) {
  if (inputPortsDviDviPortNumberDynacalRedGamutGetSet == null) {
    return null;
  }
  return enums.InputPortsDviDviPortNumberDynacalRedGamutGetSet.values
          .firstWhereOrNull((e) =>
              e.value == inputPortsDviDviPortNumberDynacalRedGamutGetSet) ??
      defaultValue;
}