outputNetworkGenlockPhaseOffsetModeGetSetNullableFromJson function
OutputNetworkGenlockPhaseOffsetModeGetSet?
outputNetworkGenlockPhaseOffsetModeGetSetNullableFromJson(
- Object? outputNetworkGenlockPhaseOffsetModeGetSet, [
- 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;
}