toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'key': key.toJson(),
'refreshUrl': refreshUrl,
'inclusionRules': inclusionRules.toJson(),
'cookieCravings': cookieCravings.map((e) => e.toJson()).toList(),
'expiryDate': expiryDate.toJson(),
'allowedRefreshInitiators': [...allowedRefreshInitiators],
if (cachedChallenge != null) 'cachedChallenge': cachedChallenge,
};
}