fromMap static method
override
Construct from Map.
Implementation
static AssignGooglePlayTransaction? 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 package_name = _map['package_name']! as String;
var store_product_id = _map['store_product_id']! as String;
var purchase_token = _map['purchase_token']! as String;
var purpose = StorePaymentPurpose.fromMap(_map['purpose'])!;
return AssignGooglePlayTransaction(
extra: extra,
clientId: clientId,
package_name: package_name,
store_product_id: store_product_id,
purchase_token: purchase_token,
purpose: purpose,
);
}