Invoice constructor

const Invoice({
  1. required String number,
  2. required String asset,
  3. required String blockchain,
  4. String? network,
  5. required String status,
  6. required String amount,
  7. String? description,
  8. String? hiddenMessage,
  9. dynamic metadata,
  10. String? checkoutUrl,
  11. String? onchainUrl,
  12. String? successUrl,
  13. String? cancelUrl,
  14. String? explorerUrl,
  15. DateTime? expiresAt,
  16. required DateTime createdAt,
  17. DateTime? updatedAt,
})

Invoice model.

Implementation

const Invoice({
  required this.number,
  required this.asset,
  required this.blockchain,
  this.network,
  required this.status,
  required this.amount,
  this.description,
  this.hiddenMessage,
  this.metadata,
  this.checkoutUrl,
  this.onchainUrl,
  this.successUrl,
  this.cancelUrl,
  this.explorerUrl,
  this.expiresAt,
  required this.createdAt,
  this.updatedAt,
});