Subscription.fromJson constructor
Subscription.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Subscription.fromJson(Map<String, dynamic> json) => Subscription(
data: json["data"] == null
? null
: SubscriptionData.fromJson(json["data"]),
first: json["first"],
idCustomer: json["idCustomer"],
idPlan: json["idPlan"],
ip: json["ip"],
methodConfirmation: json["method_confirmation"],
nextVerificationDate: json["nextVerificationDate"],
paymentAttempts: json["paymentAttempts"] == null
? []
: List<dynamic>.from(json["paymentAttempts"]!.map((x) => x)),
periodEnd: json["periodEnd"],
periodStart: json["periodStart"] == null
? null
: PeriodStart.fromJson(json["periodStart"]),
status: json["status"],
tokenCard: json["tokenCard"],
urlConfirmation: json["url_confirmation"],
);