toJson method
Creates a JSON string representation of PushNotification object.
Implementation
Map<String, dynamic> toJson() => {
'id': '$mechanismUID-$timeAdded',
'mechanismUID': mechanismUID,
'messageId': messageId,
'challenge': challenge,
'amlbCookie': amlbCookie,
'timeAdded': timeAdded,
'timeExpired': timeExpired,
'ttl': ttl,
'approved': approved,
'pending': pending,
'customPayload': customPayload,
'numbersChallenge': numbersChallenge,
'contextInfo': contextInfo,
'pushType': pushType?.value,
};