getJsonArray function

String getJsonArray(
  1. List<String> strings
)

Implementation

String getJsonArray(List<String> strings) {
  String results = "";
  for (String uid in strings) {
    results += "\"$uid\",";
  }
  if (results.isNotEmpty) {
    results = results.substring(0, results.length - 1);
  }
  return "[$results]";
}