setPushMetaData static method

void setPushMetaData(
  1. Map<String, dynamic> pushMetaData, {
  2. bool isAnswer = false,
  3. bool isDecline = false,
})

Implementation

static void setPushMetaData(Map<String, dynamic> pushMetaData,
    {bool isAnswer = false, bool isDecline = false}) {
  Map<String, dynamic> metaData = jsonDecode(pushMetaData["metadata"]);
  metaData["isAnswer"] = isAnswer;
  metaData["isDecline"] = isDecline;
  _PreferencesStorage.saveMetadata(jsonEncode(metaData));
}