inputPortsDviDviPortNumberDynacalRedGamutGetSetNullableFromJson function
InputPortsDviDviPortNumberDynacalRedGamutGetSet?
inputPortsDviDviPortNumberDynacalRedGamutGetSetNullableFromJson(
- Object? inputPortsDviDviPortNumberDynacalRedGamutGetSet, [
- InputPortsDviDviPortNumberDynacalRedGamutGetSet? defaultValue
Implementation
enums.InputPortsDviDviPortNumberDynacalRedGamutGetSet?
inputPortsDviDviPortNumberDynacalRedGamutGetSetNullableFromJson(
Object? inputPortsDviDviPortNumberDynacalRedGamutGetSet, [
enums.InputPortsDviDviPortNumberDynacalRedGamutGetSet? defaultValue,
]) {
if (inputPortsDviDviPortNumberDynacalRedGamutGetSet == null) {
return null;
}
return enums.InputPortsDviDviPortNumberDynacalRedGamutGetSet.values
.firstWhereOrNull((e) =>
e.value == inputPortsDviDviPortNumberDynacalRedGamutGetSet) ??
defaultValue;
}