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