powerSourceV2ListToJson function

List<String> powerSourceV2ListToJson(
  1. List<PowerSourceV2>? powerSourceV2
)

Implementation

List<String> powerSourceV2ListToJson(List<enums.PowerSourceV2>? powerSourceV2) {
  if (powerSourceV2 == null) {
    return [];
  }

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