inputActiveSourcePortTypeGetSetNullableFromJson function

InputActiveSourcePortTypeGetSet? inputActiveSourcePortTypeGetSetNullableFromJson(
  1. Object? inputActiveSourcePortTypeGetSet, [
  2. InputActiveSourcePortTypeGetSet? defaultValue
])

Implementation

enums.InputActiveSourcePortTypeGetSet?
    inputActiveSourcePortTypeGetSetNullableFromJson(
  Object? inputActiveSourcePortTypeGetSet, [
  enums.InputActiveSourcePortTypeGetSet? defaultValue,
]) {
  if (inputActiveSourcePortTypeGetSet == null) {
    return null;
  }
  return enums.InputActiveSourcePortTypeGetSet.values.firstWhereOrNull(
          (e) => e.value == inputActiveSourcePortTypeGetSet) ??
      defaultValue;
}