readJson method
Implementation
Map<String, dynamic>? readJson() {
if (!file.existsSync()) {
return null;
}
var content = file.readAsStringSync();
try {
return json.decode(content);
} catch (e) {
print('Error Decode:$content($e)');
return null;
}
}