decodeStringFrame method
input can be String or List
Implementation
@override
Map? decodeStringFrame(String str) {
_reviver ??= (key, value) {
if (value is String && value.startsWith('\u001Bbytes:')) {
try {
return ByteDataUtil.fromUint8List(Base64.decode(value.substring(7))!);
} catch (err) {
return null;
}
}
return value;
};
_unsafeDecoder ??= JsonDecoder(_reviver);
Map? result = _unsafeDecoder?.convert(str);
return result;
}