ContentAccessModel.fromJson constructor

ContentAccessModel.fromJson(
  1. Map<String, dynamic> json
)

Implementation

ContentAccessModel.fromJson(Map<String, dynamic> json) {
  sessionExists = json['sessionExists'];
  accessTimeLeft = json['accessTimeLeft'];
  freeAccess = json['freeAccess'];
  isAdfreePurchased = json['isAdfreePurchased'];
  payload =
      json['payload'] != null ? Payload.fromJson(json['payload']) : null;
  consumptionId = json['consumptionId'];
  signature = json['signature'];
  downloadExists = json['downloadExists'];
  unlockedWithPass = json['unlockedWithPass'];
  unlockedWithSubscription = json['unlockedWithSubscription'];
}