fromResponse static method

List<VendorEntity> fromResponse({
  1. required VendorsResponse response,
})

Implementation

static List<VendorEntity> fromResponse({
  required VendorsResponse response,
}) =>
    response.vendors
        ?.map(
          (VendorResponse vendorResponse) => VendorMapper.fromResponse(
            response: vendorResponse,
          ),
        )
        .toList() ??
    <VendorEntity>[];