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. required String userId,
  10. String? campainId,
  11. String? offerId,
})

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,
  required this.userId,
  this.campainId,
  this.offerId,
});