PurchaseSubscriptionModel constructor

const PurchaseSubscriptionModel({
  1. @Default(true) bool expired,
  2. String? token,
  3. String? platform,
  4. String? productId,
  5. String? purchaseId,
  6. String? packageName,
  7. int? expiredTime,
  8. String? orderId,
  9. required String userId,
})

Model for storing subscription data for billing purposes.

You can retrieve a collection or document by passing collection and document, respectively.

課金用のサブスクリプションデータを保存するためのモデル。

collectiondocumentをそれぞれ渡すことによりコレクションやドキュメントを取得することができます。

Implementation

const factory PurchaseSubscriptionModel({
  @Default(true) bool expired,
  String? token,
  String? platform,
  String? productId,
  String? purchaseId,
  String? packageName,
  int? expiredTime,
  String? orderId,
  required String userId,
}) = _PurchaseSubscriptionModel;