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,
}) {
  final Map<String, dynamic> metaData = jsonDecode(pushMetaData['metadata']);
  metaData['isAnswer'] = isAnswer;
  metaData['isDecline'] = isDecline;
  PreferencesStorage.saveMetadata(jsonEncode(metaData));
}