outputNetworkGenlockSourceGetSetNullableFromJson function

OutputNetworkGenlockSourceGetSet? outputNetworkGenlockSourceGetSetNullableFromJson(
  1. Object? outputNetworkGenlockSourceGetSet, [
  2. 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;
}