ResourceUsageCosts constructor

ResourceUsageCosts({
  1. Iterable<UsageCost>? usageCosts,
  2. double? discount,
  3. double? totalWithDiscount,
  4. double? totalWithoutDiscount,
})

Implementation

factory ResourceUsageCosts({
  $core.Iterable<UsageCost>? usageCosts,
  $core.double? discount,
  $core.double? totalWithDiscount,
  $core.double? totalWithoutDiscount,
}) {
  final $result = create();
  if (usageCosts != null) {
    $result.usageCosts.addAll(usageCosts);
  }
  if (discount != null) {
    $result.discount = discount;
  }
  if (totalWithDiscount != null) {
    $result.totalWithDiscount = totalWithDiscount;
  }
  if (totalWithoutDiscount != null) {
    $result.totalWithoutDiscount = totalWithoutDiscount;
  }
  return $result;
}