tryRestore method

Future<bool> tryRestore()

Implementation

Future<bool> tryRestore() async {
  try {
    final file = File('bizdoc.json');
    final json = await file.readAsString();
    _profile = Profile.fromJson(jsonDecode(json));
    return true;
  } catch (e) {
    //  print(e);
  }
  return false;
}