inputPortsDviDviPortNumberDynacalGreenGamutGetSetNullableFromJson function

InputPortsDviDviPortNumberDynacalGreenGamutGetSet? inputPortsDviDviPortNumberDynacalGreenGamutGetSetNullableFromJson(
  1. Object? inputPortsDviDviPortNumberDynacalGreenGamutGetSet, [
  2. InputPortsDviDviPortNumberDynacalGreenGamutGetSet? defaultValue
])

Implementation

enums.InputPortsDviDviPortNumberDynacalGreenGamutGetSet?
    inputPortsDviDviPortNumberDynacalGreenGamutGetSetNullableFromJson(
  Object? inputPortsDviDviPortNumberDynacalGreenGamutGetSet, [
  enums.InputPortsDviDviPortNumberDynacalGreenGamutGetSet? defaultValue,
]) {
  if (inputPortsDviDviPortNumberDynacalGreenGamutGetSet == null) {
    return null;
  }
  return enums.InputPortsDviDviPortNumberDynacalGreenGamutGetSet.values
          .firstWhereOrNull((e) =>
              e.value == inputPortsDviDviPortNumberDynacalGreenGamutGetSet) ??
      defaultValue;
}