fromJson static method
Implementation
static PremiumPaymentOption? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return PremiumPaymentOption(
currency: (json['currency'] as String?) ?? '',
amount: (json['amount'] as int?) ?? 0,
discountPercentage: (json['discount_percentage'] as int?) ?? 0,
monthCount: (json['month_count'] as int?) ?? 0,
storeProductId: (json['store_product_id'] as String?) ?? '',
paymentLink: InternalLinkType.fromJson(
tdMapFromJson(json['payment_link']),
),
);
}