fromResponse static method

List<PriceRuleEntity> fromResponse({
  1. required List<Price>? response,
})

Implementation

static List<PriceRuleEntity> fromResponse({
  required List<Price>? response,
}) =>
    response
        ?.map(
          (Price price) => PriceRuleMapper.fromResponse(response: price),
        )
        .toList() ??
    <PriceRuleEntity>[];