TransactionModel constructor

TransactionModel({
  1. String? id,
  2. required TransactionType type,
  3. required TransactionStatus status,
  4. required PaymentMethod paymentMethod,
  5. required String token,
  6. required int credit,
  7. int price = 0,
  8. required DateTime createdAt,
  9. DateTime? updatedAt,
  10. required String userId,
  11. String? campaignId,
  12. String? offerId,
  13. String? companyId,
  14. TransactionPeriod? period,
})

Implementation

TransactionModel({
  this.id,
  required this.type,
  required this.status,
  required this.paymentMethod,
  required this.token,
  required this.credit,
  this.price = 0,
  required this.createdAt,
  this.updatedAt,
  required this.userId,
  this.campaignId,
  this.offerId,
  this.companyId,
  this.period,
});