saveJson method

dynamic saveJson(
  1. dynamic value, {
  2. bool inBackpack = false,
})

Store a JSON value in NyStorage You can also save a value in the backpack by setting inBackpack to true

Implementation

saveJson(dynamic value, {bool inBackpack = false}) async {
  try {
    return await NyStorage.saveJson(this, value, inBackpack: inBackpack);
  } catch (e) {
    NyLogger.error(e);
  }
}