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