conversionPadding function

String conversionPadding(
  1. Map originMap
)

Implementation

String conversionPadding(Map originMap) {
  List propsList = originMap['propsList'];
  String resultString = '';
  for (var i = 0; i < propsList.length; i++) {
    String elementString = '${propsList[i]['value']}';
    if (i == 0) {
      resultString = '[' + elementString;
    } else if (i == propsList.length - 1) {
      resultString = resultString + ',' + elementString + ']';
    } else {
      resultString = resultString + ',' + elementString;
    }
  }
  return resultString;
}