Bonuses constructor

Bonuses({
  1. int? id,
  2. double? amount,
  3. double? used,
  4. double? actualAmount,
  5. String? start,
  6. String? end,
  7. int? daysLeft,
  8. bool? expired,
  9. String? type,
})

Implementation

Bonuses(
    {int? id,
    double? amount,
    double? used,
    double? actualAmount,
    String? start,
    String? end,
    int? daysLeft,
    bool? expired,
    String? type}) {
  if (id != null) {
    _id = id;
  }
  if (amount != null) {
    _amount = amount;
  }
  if (used != null) {
    _used = used;
  }
  if (actualAmount != null) {
    _actualAmount = actualAmount;
  }
  if (start != null) {
    _start = start;
  }
  if (end != null) {
    _end = end;
  }
  if (daysLeft != null) {
    _daysLeft = daysLeft;
  }
  if (expired != null) {
    _expired = expired;
  }
  if (type != null) {
    _type = type;
  }
}