SubscriptionInfo.fromJson constructor
SubscriptionInfo.fromJson(
- Map<String, dynamic> json
)
Implementation
factory SubscriptionInfo.fromJson(Map<String, dynamic> json) =>
SubscriptionInfo(
subscriptionNo: json["subscription_no"] ?? "",
bankName: json['bank_name'] ?? "",
bankNameKh: json['bank_name_kh'] ?? "",
status: json['status'] ?? "",
totalConsumer: json['total_consumer'] ?? 0,
subscriptionDate: json['subscription_date'] ?? "",
subscriptionDateDisplayKh: json['subscription_date_display_kh'] ?? "",
subscriptionDateDisplayEn: json['subscription_date_display_en'] ?? "",
// redirectUrl: RedirectUrl.fromJson(json['redirect_url'] ?? {}),
redirectUrl: json['redirect_url'] ?? "",
bankSubscriptionMethods: List<BankSubscriptionMethod>.from(
(json["bank_subscription_methods"] ?? [])
.map((x) => BankSubscriptionMethod.fromJson(x))),
);