fromMap static method
override
Construct from Map.
Implementation
static PremiumPaymentOption? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
if (_ != CONSTRUCTOR) return null;
var extra = _map['@extra'];
var clientId = _map['@clientId'];
var currency = _map['currency']! as String;
var amount = _map['amount']! as int;
var discount_percentage = _map['discount_percentage']! as int;
var month_count = _map['month_count']! as int;
var store_product_id = _map['store_product_id']! as String;
var payment_link = InternalLinkType.fromMap(_map['payment_link']);
return PremiumPaymentOption(
extra: extra,
clientId: clientId,
currency: currency,
amount: amount,
discount_percentage: discount_percentage,
month_count: month_count,
store_product_id: store_product_id,
payment_link: payment_link,
);
}