outputNetworkGenlockSourceGetSetNullableFromJson function
OutputNetworkGenlockSourceGetSet?
outputNetworkGenlockSourceGetSetNullableFromJson(
- Object? outputNetworkGenlockSourceGetSet, [
- OutputNetworkGenlockSourceGetSet? defaultValue
Implementation
enums.OutputNetworkGenlockSourceGetSet?
outputNetworkGenlockSourceGetSetNullableFromJson(
Object? outputNetworkGenlockSourceGetSet, [
enums.OutputNetworkGenlockSourceGetSet? defaultValue,
]) {
if (outputNetworkGenlockSourceGetSet == null) {
return null;
}
return enums.OutputNetworkGenlockSourceGetSet.values.firstWhereOrNull(
(e) => e.value == outputNetworkGenlockSourceGetSet) ??
defaultValue;
}