Transaction constructor

const Transaction(
  1. @JsonKey(name: 'revenueCatId') String revenueCatId,
  2. @JsonKey(name: 'productId') String productId,
  3. @JsonKey(name: 'purchaseDate') String purchaseDate
)

Implementation

const factory Transaction(
  /// RevenueCat Id associated to the transaction.
  @JsonKey(name: 'revenueCatId') String revenueCatId,

  /// Product Id associated with the transaction.
  @JsonKey(name: 'productId') String productId,

  /// Purchase date of the transaction in ISO 8601 format.
  @JsonKey(name: 'purchaseDate') String purchaseDate,
) = _Transaction;