ResourceUsageCosts constructor
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;
}