inputPortsDviDviPortNumberControlsColourSpaceColourGetSetNullableFromJson function

InputPortsDviDviPortNumberControlsColourSpaceColourGetSet? inputPortsDviDviPortNumberControlsColourSpaceColourGetSetNullableFromJson(
  1. Object? inputPortsDviDviPortNumberControlsColourSpaceColourGetSet, [
  2. 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;
}