inputPortsDviDviPortNumberDynacalGreenGamutGetSetNullableFromJson function
InputPortsDviDviPortNumberDynacalGreenGamutGetSet?
inputPortsDviDviPortNumberDynacalGreenGamutGetSetNullableFromJson(
- Object? inputPortsDviDviPortNumberDynacalGreenGamutGetSet, [
- 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;
}