outputNetworkGenlockPhaseOffsetModeGetSetNullableFromJson function

OutputNetworkGenlockPhaseOffsetModeGetSet? outputNetworkGenlockPhaseOffsetModeGetSetNullableFromJson(
  1. Object? outputNetworkGenlockPhaseOffsetModeGetSet, [
  2. OutputNetworkGenlockPhaseOffsetModeGetSet? defaultValue
])

Implementation

enums.OutputNetworkGenlockPhaseOffsetModeGetSet?
    outputNetworkGenlockPhaseOffsetModeGetSetNullableFromJson(
  Object? outputNetworkGenlockPhaseOffsetModeGetSet, [
  enums.OutputNetworkGenlockPhaseOffsetModeGetSet? defaultValue,
]) {
  if (outputNetworkGenlockPhaseOffsetModeGetSet == null) {
    return null;
  }
  return enums.OutputNetworkGenlockPhaseOffsetModeGetSet.values
          .firstWhereOrNull(
              (e) => e.value == outputNetworkGenlockPhaseOffsetModeGetSet) ??
      defaultValue;
}