inputPortsDviDviPortNumberDynacalBlueGamutGetSetNullableFromJson function

InputPortsDviDviPortNumberDynacalBlueGamutGetSet? inputPortsDviDviPortNumberDynacalBlueGamutGetSetNullableFromJson(
  1. Object? inputPortsDviDviPortNumberDynacalBlueGamutGetSet, [
  2. InputPortsDviDviPortNumberDynacalBlueGamutGetSet? defaultValue
])

Implementation

enums.InputPortsDviDviPortNumberDynacalBlueGamutGetSet?
    inputPortsDviDviPortNumberDynacalBlueGamutGetSetNullableFromJson(
  Object? inputPortsDviDviPortNumberDynacalBlueGamutGetSet, [
  enums.InputPortsDviDviPortNumberDynacalBlueGamutGetSet? defaultValue,
]) {
  if (inputPortsDviDviPortNumberDynacalBlueGamutGetSet == null) {
    return null;
  }
  return enums.InputPortsDviDviPortNumberDynacalBlueGamutGetSet.values
          .firstWhereOrNull((e) =>
              e.value == inputPortsDviDviPortNumberDynacalBlueGamutGetSet) ??
      defaultValue;
}