outputNetworkGenlockPhaseOffsetModeGetSetListToJson function

List<String> outputNetworkGenlockPhaseOffsetModeGetSetListToJson(
  1. List<OutputNetworkGenlockPhaseOffsetModeGetSet>? outputNetworkGenlockPhaseOffsetModeGetSet
)

Implementation

List<String> outputNetworkGenlockPhaseOffsetModeGetSetListToJson(
    List<enums.OutputNetworkGenlockPhaseOffsetModeGetSet>?
        outputNetworkGenlockPhaseOffsetModeGetSet) {
  if (outputNetworkGenlockPhaseOffsetModeGetSet == null) {
    return [];
  }

  return outputNetworkGenlockPhaseOffsetModeGetSet
      .map((e) => e.value!)
      .toList();
}