inputPortsDviDviPortNumberDynacalWhiteGamutGetSetNullableFromJson function

InputPortsDviDviPortNumberDynacalWhiteGamutGetSet? inputPortsDviDviPortNumberDynacalWhiteGamutGetSetNullableFromJson(
  1. Object? inputPortsDviDviPortNumberDynacalWhiteGamutGetSet, [
  2. InputPortsDviDviPortNumberDynacalWhiteGamutGetSet? defaultValue
])

Implementation

enums.InputPortsDviDviPortNumberDynacalWhiteGamutGetSet?
    inputPortsDviDviPortNumberDynacalWhiteGamutGetSetNullableFromJson(
  Object? inputPortsDviDviPortNumberDynacalWhiteGamutGetSet, [
  enums.InputPortsDviDviPortNumberDynacalWhiteGamutGetSet? defaultValue,
]) {
  if (inputPortsDviDviPortNumberDynacalWhiteGamutGetSet == null) {
    return null;
  }
  return enums.InputPortsDviDviPortNumberDynacalWhiteGamutGetSet.values
          .firstWhereOrNull((e) =>
              e.value == inputPortsDviDviPortNumberDynacalWhiteGamutGetSet) ??
      defaultValue;
}