ProductPurchase.fromJson constructor

ProductPurchase.fromJson(
  1. Map json_
)

Implementation

ProductPurchase.fromJson(core.Map json_)
    : this(
        acknowledgementState: json_.containsKey('acknowledgementState')
            ? json_['acknowledgementState'] as core.int
            : null,
        consumptionState: json_.containsKey('consumptionState')
            ? json_['consumptionState'] as core.int
            : null,
        developerPayload: json_.containsKey('developerPayload')
            ? json_['developerPayload'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        obfuscatedExternalAccountId:
            json_.containsKey('obfuscatedExternalAccountId')
                ? json_['obfuscatedExternalAccountId'] as core.String
                : null,
        obfuscatedExternalProfileId:
            json_.containsKey('obfuscatedExternalProfileId')
                ? json_['obfuscatedExternalProfileId'] as core.String
                : null,
        orderId: json_.containsKey('orderId')
            ? json_['orderId'] as core.String
            : null,
        productId: json_.containsKey('productId')
            ? json_['productId'] as core.String
            : null,
        purchaseState: json_.containsKey('purchaseState')
            ? json_['purchaseState'] as core.int
            : null,
        purchaseTimeMillis: json_.containsKey('purchaseTimeMillis')
            ? json_['purchaseTimeMillis'] as core.String
            : null,
        purchaseToken: json_.containsKey('purchaseToken')
            ? json_['purchaseToken'] as core.String
            : null,
        purchaseType: json_.containsKey('purchaseType')
            ? json_['purchaseType'] as core.int
            : null,
        quantity: json_.containsKey('quantity')
            ? json_['quantity'] as core.int
            : null,
        refundableQuantity: json_.containsKey('refundableQuantity')
            ? json_['refundableQuantity'] as core.int
            : null,
        regionCode: json_.containsKey('regionCode')
            ? json_['regionCode'] as core.String
            : null,
      );