fromResponse static method

PriceRuleEntity fromResponse({
  1. required Price response,
})

Implementation

static PriceRuleEntity fromResponse({required Price response}) =>
    PriceRuleEntity(
      price: response.price ?? 0,
      priceVat: response.priceVat ?? 0,
      priceVatWithoutDiscount: response.priceVatWithoutDiscount ?? 0,
      promoDelta: response.promoDelta ?? 0,
      totalPrice: response.totalPrice ?? 0,
      totalPriceVat: response.totalPriceVat ?? 0,
      ruleId: response.ruleId ?? '',
      ruleName: response.ruleName ?? '',
    );