decodeUnicodeEscapeSequences static method
Implementation
static String decodeUnicodeEscapeSequences(String input) {
return input
.replaceAllMapped(
RegExp(r'\\u([0-9A-Fa-f]{4})'),
(match) =>
String.fromCharCode(int.parse(match.group(1)!, radix: 16)))
.replaceAll('\\"', '"');
}