outputNetworkGenlockSourceGetSetListFromJson function

List<OutputNetworkGenlockSourceGetSet> outputNetworkGenlockSourceGetSetListFromJson(
  1. List? outputNetworkGenlockSourceGetSet, [
  2. List<OutputNetworkGenlockSourceGetSet>? defaultValue
])

Implementation

List<enums.OutputNetworkGenlockSourceGetSet>
    outputNetworkGenlockSourceGetSetListFromJson(
  List? outputNetworkGenlockSourceGetSet, [
  List<enums.OutputNetworkGenlockSourceGetSet>? defaultValue,
]) {
  if (outputNetworkGenlockSourceGetSet == null) {
    return defaultValue ?? [];
  }

  return outputNetworkGenlockSourceGetSet
      .map((e) => outputNetworkGenlockSourceGetSetFromJson(e.toString()))
      .toList();
}