fromMap static method
override
Construct from Map.
Implementation
static PremiumStatePaymentOption? 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 payment_option = PremiumPaymentOption.fromMap(_map['payment_option'])!;
var is_current = _map['is_current']! as bool;
var is_upgrade = _map['is_upgrade']! as bool;
var last_transaction_id = _map['last_transaction_id']! as String;
return PremiumStatePaymentOption(
extra: extra,
clientId: clientId,
payment_option: payment_option,
is_current: is_current,
is_upgrade: is_upgrade,
last_transaction_id: last_transaction_id,
);
}