IaphubSubscriptionIntroPhase.fromJson constructor

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

Constructor from JSON

Implementation

IaphubSubscriptionIntroPhase.fromJson(Map<String, dynamic> json)
    : type = json["type"] ?? "",
      price = json["price"] != null
          ? double.parse(json["price"].toString())
          : 0.0,
      currency = json["currency"] ?? "",
      localizedPrice = json["localizedPrice"] ?? "",
      cycleDuration = json["cycleDuration"] ?? "",
      cycleCount = json["cycleCount"] ?? 0,
      payment = json["payment"] ?? "";