loadSubscriptions method

Map<String, bool> loadSubscriptions()

Implementation

Map<String, bool> loadSubscriptions() {
  try {
    final jsonStr = storage.getString(keySubscriptions);
    if (jsonStr != null) {
      final decoded = jsonDecode(jsonStr) as Map<String, dynamic>;

      return decoded.map((key, value) => MapEntry(key, value as bool));
    }
  } catch (_) {}
  return {};
}