processValue function

String processValue(
  1. dynamic value,
  2. String type
)

Implementation

String processValue(value, String type) {
  if (value is String) {
    value = trimQuotes(value);
  }

  var mapTypeToInterfaceFnName;
  final convertFnName = mapTypeToInterfaceFnName[type];
  if (convertFnName == null) {
    // log.warn('Error in converting this value of type $type');
    return value.toString();
  }

  final convertedValue =
      addQuotesToString(functionConvertors[convertFnName]!(value));
  return convertedValue;
}