kEncoder -> kJsonEncoder

This commit is contained in:
Ashita Prasad
2024-09-08 05:05:00 +05:30
parent 4c1b75bf98
commit bd5c83525e
11 changed files with 23 additions and 21 deletions

View File

@ -150,7 +150,7 @@ Uint8List jsonMapToBytes(Map<String, dynamic>? map) {
if (map == null) {
return Uint8List.fromList([]);
} else {
String text = kEncoder.convert(map);
String text = kJsonEncoder.convert(map);
var l = utf8.encode(text);
var bytes = Uint8List.fromList(l);
return bytes;