inputPortsSdiSdiPortNumberDynacalGreenGamutGetSetNullableFromJson function

InputPortsSdiSdiPortNumberDynacalGreenGamutGetSet? inputPortsSdiSdiPortNumberDynacalGreenGamutGetSetNullableFromJson(
  1. Object? inputPortsSdiSdiPortNumberDynacalGreenGamutGetSet, [
  2. InputPortsSdiSdiPortNumberDynacalGreenGamutGetSet? defaultValue
])

Implementation

enums.InputPortsSdiSdiPortNumberDynacalGreenGamutGetSet?
    inputPortsSdiSdiPortNumberDynacalGreenGamutGetSetNullableFromJson(
  Object? inputPortsSdiSdiPortNumberDynacalGreenGamutGetSet, [
  enums.InputPortsSdiSdiPortNumberDynacalGreenGamutGetSet? defaultValue,
]) {
  if (inputPortsSdiSdiPortNumberDynacalGreenGamutGetSet == null) {
    return null;
  }
  return enums.InputPortsSdiSdiPortNumberDynacalGreenGamutGetSet.values
          .firstWhereOrNull((e) =>
              e.value == inputPortsSdiSdiPortNumberDynacalGreenGamutGetSet) ??
      defaultValue;
}