inputActiveSourcePortTypeGetSetNullableFromJson function
InputActiveSourcePortTypeGetSet?
inputActiveSourcePortTypeGetSetNullableFromJson(
- Object? inputActiveSourcePortTypeGetSet, [
- 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;
}