toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['sessionExists'] = sessionExists;
  data['accessTimeLeft'] = accessTimeLeft;
  data['freeAccess'] = freeAccess;
  data['isAdfreePurchased'] = isAdfreePurchased;
  if (payload != null) {
    data['payload'] = payload!.toJson();
  }
  data['consumptionId'] = consumptionId;
  data['signature'] = signature;
  data['downloadExists'] = downloadExists;
  data['unlockedWithPass'] = unlockedWithPass;
  data['unlockedWithSubscription'] = unlockedWithSubscription;
  return data;
}