fromResponse static method

List<BrandEntity> fromResponse({
  1. required GetBrandsResponse response,
})

Implementation

static List<BrandEntity> fromResponse({
  required GetBrandsResponse response,
}) =>
    response.brands
        ?.map(
          (BrandResponse brand) => BrandMapper.fromResponse(
            response: brand,
          ),
        )
        .toList() ??
    <BrandEntity>[];