toModel method

PriceModifier toModel()

Constructs a new PriceModifier from this PriceModifierMixin.

Implementation

PriceModifier toModel() =>
    PriceModifier(percentage: percentage, amount: amount.toModel());