tryEncode static method
Implementation
static String? tryEncode(data) {
try {
return jsonEncode(data);
} catch (e) {
return null;
}
}
static String? tryEncode(data) {
try {
return jsonEncode(data);
} catch (e) {
return null;
}
}