Bonuses constructor
Bonuses({})
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;
}
}