outputNetworkGenlockPhaseOffsetModeGetSetListFromJson function

List<OutputNetworkGenlockPhaseOffsetModeGetSet> outputNetworkGenlockPhaseOffsetModeGetSetListFromJson(
  1. List? outputNetworkGenlockPhaseOffsetModeGetSet, [
  2. List<OutputNetworkGenlockPhaseOffsetModeGetSet>? defaultValue
])

Implementation

List<enums.OutputNetworkGenlockPhaseOffsetModeGetSet>
    outputNetworkGenlockPhaseOffsetModeGetSetListFromJson(
  List? outputNetworkGenlockPhaseOffsetModeGetSet, [
  List<enums.OutputNetworkGenlockPhaseOffsetModeGetSet>? defaultValue,
]) {
  if (outputNetworkGenlockPhaseOffsetModeGetSet == null) {
    return defaultValue ?? [];
  }

  return outputNetworkGenlockPhaseOffsetModeGetSet
      .map((e) =>
          outputNetworkGenlockPhaseOffsetModeGetSetFromJson(e.toString()))
      .toList();
}