Allocation constructor

const Allocation({
  1. required String id,
  2. required AllocationType type,
  3. required AllocationStatus status,
  4. AllocationUse? refund,
  5. AllocationUse? payout,
  6. required DateTime createdAt,
  7. required DateTime updatedAt,
  8. DateTime? completedAt,
})

Implementation

const Allocation({
  required this.id,
  required this.type,
  required this.status,
  this.refund,
  this.payout,
  required this.createdAt,
  required this.updatedAt,
  this.completedAt,
});