toUnicode method
Implementation
String toUnicode() {
StringBuffer unicodeBuffer = StringBuffer();
forEach((key, value) {
if (value is String) {
unicodeBuffer.write('"$key": "${value.toUnicode()}", ');
} else {
unicodeBuffer.write('"$key": $value, ');
}
});
String result = unicodeBuffer.toString();
if (result.endsWith(', ')) {
result = result.substring(0, result.length - 2);
}
return result;
}