inputPortsSdiSdiPortNumberDynacalRedGamutGetSetNullableFromJson function

InputPortsSdiSdiPortNumberDynacalRedGamutGetSet? inputPortsSdiSdiPortNumberDynacalRedGamutGetSetNullableFromJson(
  1. Object? inputPortsSdiSdiPortNumberDynacalRedGamutGetSet, [
  2. InputPortsSdiSdiPortNumberDynacalRedGamutGetSet? defaultValue
])

Implementation

enums.InputPortsSdiSdiPortNumberDynacalRedGamutGetSet?
    inputPortsSdiSdiPortNumberDynacalRedGamutGetSetNullableFromJson(
  Object? inputPortsSdiSdiPortNumberDynacalRedGamutGetSet, [
  enums.InputPortsSdiSdiPortNumberDynacalRedGamutGetSet? defaultValue,
]) {
  if (inputPortsSdiSdiPortNumberDynacalRedGamutGetSet == null) {
    return null;
  }
  return enums.InputPortsSdiSdiPortNumberDynacalRedGamutGetSet.values
          .firstWhereOrNull((e) =>
              e.value == inputPortsSdiSdiPortNumberDynacalRedGamutGetSet) ??
      defaultValue;
}