Payment constructor

const Payment({
  1. required String id,
  2. required PaymentType paymentType,
  3. required int paymentTime,
  4. required int amountMsat,
  5. required int feeMsat,
  6. required PaymentStatus status,
  7. String? error,
  8. String? description,
  9. required PaymentDetails details,
  10. String? metadata,
})

Implementation

const Payment({
  required this.id,
  required this.paymentType,
  required this.paymentTime,
  required this.amountMsat,
  required this.feeMsat,
  required this.status,
  this.error,
  this.description,
  required this.details,
  this.metadata,
});