Transaction class

Represents a purchase transaction

Annotations
  • @freezed

Constructors

Transaction(@JsonKey(name: 'revenueCatId') String revenueCatId, @JsonKey(name: 'productId') String productId, @JsonKey(name: 'purchaseDate') String purchaseDate)
const
factory
Transaction.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → $TransactionCopyWith<Transaction>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
productId String
Product Id associated with the transaction.
no setterinherited
purchaseDate String
Purchase date of the transaction in ISO 8601 format.
no setterinherited
revenueCatId String
RevenueCat Id associated to the transaction.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
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