inputActiveSourcePortTypeGetSetFromJson function

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

Implementation

enums.InputActiveSourcePortTypeGetSet inputActiveSourcePortTypeGetSetFromJson(
  Object? inputActiveSourcePortTypeGetSet, [
  enums.InputActiveSourcePortTypeGetSet? defaultValue,
]) {
  return enums.InputActiveSourcePortTypeGetSet.values.firstWhereOrNull((e) =>
          e.value.toString().toLowerCase() ==
          inputActiveSourcePortTypeGetSet?.toString().toLowerCase()) ??
      defaultValue ??
      enums.InputActiveSourcePortTypeGetSet.swaggerGeneratedUnknown;
}