PeriodicAllowance constructor
PeriodicAllowance({})
Implementation
factory PeriodicAllowance({
BasicAllowance? basic,
$4.Duration? period,
$core.Iterable<$2.Coin>? periodSpendLimit,
$core.Iterable<$2.Coin>? periodCanSpend,
$3.Timestamp? periodReset,
}) {
final _result = create();
if (basic != null) {
_result.basic = basic;
}
if (period != null) {
_result.period = period;
}
if (periodSpendLimit != null) {
_result.periodSpendLimit.addAll(periodSpendLimit);
}
if (periodCanSpend != null) {
_result.periodCanSpend.addAll(periodCanSpend);
}
if (periodReset != null) {
_result.periodReset = periodReset;
}
return _result;
}