inputPortsSdiSdiPortNumberDynacalBlueGamutGetSetNullableFromJson function

InputPortsSdiSdiPortNumberDynacalBlueGamutGetSet? inputPortsSdiSdiPortNumberDynacalBlueGamutGetSetNullableFromJson(
  1. Object? inputPortsSdiSdiPortNumberDynacalBlueGamutGetSet, [
  2. InputPortsSdiSdiPortNumberDynacalBlueGamutGetSet? defaultValue
])

Implementation

enums.InputPortsSdiSdiPortNumberDynacalBlueGamutGetSet?
    inputPortsSdiSdiPortNumberDynacalBlueGamutGetSetNullableFromJson(
  Object? inputPortsSdiSdiPortNumberDynacalBlueGamutGetSet, [
  enums.InputPortsSdiSdiPortNumberDynacalBlueGamutGetSet? defaultValue,
]) {
  if (inputPortsSdiSdiPortNumberDynacalBlueGamutGetSet == null) {
    return null;
  }
  return enums.InputPortsSdiSdiPortNumberDynacalBlueGamutGetSet.values
          .firstWhereOrNull((e) =>
              e.value == inputPortsSdiSdiPortNumberDynacalBlueGamutGetSet) ??
      defaultValue;
}