Bill constructor

Bill({
  1. AccountId? accountId,
  2. Timestamp? from,
  3. Timestamp? to,
  4. Iterable<MapEntry<int, Credit>>? buckets,
  5. Credit? total,
})

Implementation

factory Bill({
  $0.AccountId? accountId,
  $3.Timestamp? from,
  $3.Timestamp? to,
  $core.Iterable<$core.MapEntry<$core.int, $1.Credit>>? buckets,
  $1.Credit? total,
}) {
  final result = create();
  if (accountId != null) result.accountId = accountId;
  if (from != null) result.from = from;
  if (to != null) result.to = to;
  if (buckets != null) result.buckets.addEntries(buckets);
  if (total != null) result.total = total;
  return result;
}