PurchaseSubscriptionModel class

Model for storing subscription data for billing purposes.

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

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

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

Annotations
  • @freezed
  • @formValue
  • @immutable
  • @CollectionModelPath(PurchaseSubscriptionModel.path)

Constructors

PurchaseSubscriptionModel({@Default(true) bool expired, String? token, String? platform, String? productId, String? purchaseId, String? packageName, int? expiredTime, String? orderId, required String userId})
Model for storing subscription data for billing purposes.
const
factory
PurchaseSubscriptionModel.fromJson(Map<String, Object?> json)
factory

Properties

copyWith → $PurchaseSubscriptionModelCopyWith<PurchaseSubscriptionModel>
no setterinherited
expired bool
no setterinherited
expiredTime int?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
orderId String?
no setterinherited
packageName String?
no setterinherited
platform String?
no setterinherited
productId String?
no setterinherited
purchaseId String?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token String?
no setterinherited
userId String
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

collection → const _$PurchaseSubscriptionModelCollectionQuery
Query for collection.
document → const _$PurchaseSubscriptionModelDocumentQuery
Query for document.
form → const _$PurchaseSubscriptionModelFormQuery
Query for form value.
path → const String
Model path.