inputPortsSdiSdiPortNumberDynacalWhiteGamutGetSetNullableFromJson function

InputPortsSdiSdiPortNumberDynacalWhiteGamutGetSet? inputPortsSdiSdiPortNumberDynacalWhiteGamutGetSetNullableFromJson(
  1. Object? inputPortsSdiSdiPortNumberDynacalWhiteGamutGetSet, [
  2. InputPortsSdiSdiPortNumberDynacalWhiteGamutGetSet? defaultValue
])

Implementation

enums.InputPortsSdiSdiPortNumberDynacalWhiteGamutGetSet?
    inputPortsSdiSdiPortNumberDynacalWhiteGamutGetSetNullableFromJson(
  Object? inputPortsSdiSdiPortNumberDynacalWhiteGamutGetSet, [
  enums.InputPortsSdiSdiPortNumberDynacalWhiteGamutGetSet? defaultValue,
]) {
  if (inputPortsSdiSdiPortNumberDynacalWhiteGamutGetSet == null) {
    return null;
  }
  return enums.InputPortsSdiSdiPortNumberDynacalWhiteGamutGetSet.values
          .firstWhereOrNull((e) =>
              e.value == inputPortsSdiSdiPortNumberDynacalWhiteGamutGetSet) ??
      defaultValue;
}