setJson static method

void setJson(
  1. String key,
  2. Map<String, dynamic> map
)

Implementation

static void setJson(String key, Map<String, dynamic> map) {
  final str = jsonEncode(map);
  _prefs?.setString(key, str);
}