ValidatedPurchase constructor

ValidatedPurchase({
  1. String? productId,
  2. String? transactionId,
  3. ValidatedPurchase_Store? store,
  4. Timestamp? purchaseTime,
  5. Timestamp? createTime,
  6. Timestamp? updateTime,
  7. String? providerResponse,
  8. ValidatedPurchase_Environment? environment,
})

Implementation

factory ValidatedPurchase({
  $core.String? productId,
  $core.String? transactionId,
  ValidatedPurchase_Store? store,
  $0.Timestamp? purchaseTime,
  $0.Timestamp? createTime,
  $0.Timestamp? updateTime,
  $core.String? providerResponse,
  ValidatedPurchase_Environment? environment,
}) {
  final _result = create();
  if (productId != null) {
    _result.productId = productId;
  }
  if (transactionId != null) {
    _result.transactionId = transactionId;
  }
  if (store != null) {
    _result.store = store;
  }
  if (purchaseTime != null) {
    _result.purchaseTime = purchaseTime;
  }
  if (createTime != null) {
    _result.createTime = createTime;
  }
  if (updateTime != null) {
    _result.updateTime = updateTime;
  }
  if (providerResponse != null) {
    _result.providerResponse = providerResponse;
  }
  if (environment != null) {
    _result.environment = environment;
  }
  return _result;
}