Subscription.fromJson constructor

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

Implementation

factory Subscription.fromJson(Map<String, dynamic> json) => Subscription(
      tierId: json["tierId"] == null ? null : json["tierId"],
      digital: json["digital"] == null ? null : json["digital"],
      physical: json["physical"] == null ? null : json["physical"],
      adFree: json["adFree"] == null ? null : json["adFree"],
      title: json["title"] == null ? null : json["title"],
      renew: json["renew"] == null ? null : json["renew"],
      duration: json["duration"] == null ? null : json["duration"],
      durationText:
          json["durationText"] == null ? null : json["durationText"],
    );