inputPortsSdiSdiPortNumberControlsColourSpaceColourGetSetNullableFromJson function

InputPortsSdiSdiPortNumberControlsColourSpaceColourGetSet? inputPortsSdiSdiPortNumberControlsColourSpaceColourGetSetNullableFromJson(
  1. Object? inputPortsSdiSdiPortNumberControlsColourSpaceColourGetSet, [
  2. InputPortsSdiSdiPortNumberControlsColourSpaceColourGetSet? defaultValue
])

Implementation

enums.InputPortsSdiSdiPortNumberControlsColourSpaceColourGetSet?
    inputPortsSdiSdiPortNumberControlsColourSpaceColourGetSetNullableFromJson(
  Object? inputPortsSdiSdiPortNumberControlsColourSpaceColourGetSet, [
  enums.InputPortsSdiSdiPortNumberControlsColourSpaceColourGetSet? defaultValue,
]) {
  if (inputPortsSdiSdiPortNumberControlsColourSpaceColourGetSet == null) {
    return null;
  }
  return enums.InputPortsSdiSdiPortNumberControlsColourSpaceColourGetSet.values
          .firstWhereOrNull((e) =>
              e.value ==
              inputPortsSdiSdiPortNumberControlsColourSpaceColourGetSet) ??
      defaultValue;
}