outputNetworkGenlockSourceGetSetFromJson function

OutputNetworkGenlockSourceGetSet outputNetworkGenlockSourceGetSetFromJson(
  1. Object? outputNetworkGenlockSourceGetSet, [
  2. OutputNetworkGenlockSourceGetSet? defaultValue
])

Implementation

enums.OutputNetworkGenlockSourceGetSet outputNetworkGenlockSourceGetSetFromJson(
  Object? outputNetworkGenlockSourceGetSet, [
  enums.OutputNetworkGenlockSourceGetSet? defaultValue,
]) {
  return enums.OutputNetworkGenlockSourceGetSet.values.firstWhereOrNull((e) =>
          e.value.toString().toLowerCase() ==
          outputNetworkGenlockSourceGetSet?.toString().toLowerCase()) ??
      defaultValue ??
      enums.OutputNetworkGenlockSourceGetSet.swaggerGeneratedUnknown;
}