outputNetworkGenlockPhaseOffsetModeGetSetFromJson function

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

Implementation

enums.OutputNetworkGenlockPhaseOffsetModeGetSet
    outputNetworkGenlockPhaseOffsetModeGetSetFromJson(
  Object? outputNetworkGenlockPhaseOffsetModeGetSet, [
  enums.OutputNetworkGenlockPhaseOffsetModeGetSet? defaultValue,
]) {
  return enums.OutputNetworkGenlockPhaseOffsetModeGetSet.values
          .firstWhereOrNull((e) =>
              e.value.toString().toLowerCase() ==
              outputNetworkGenlockPhaseOffsetModeGetSet
                  ?.toString()
                  .toLowerCase()) ??
      defaultValue ??
      enums.OutputNetworkGenlockPhaseOffsetModeGetSet.swaggerGeneratedUnknown;
}