fromResponse static method
- required VendorResponse response,
Implementation
static VendorEntity fromResponse({required VendorResponse response}) =>
VendorEntity(
id: response.id,
name: response.name,
description: response.description,
amountOfProducts: response.amountOfProducts,
logo:
'${FlavorConfig.config.vendorsUrl}api/v1/cache/images/logos/${response.logo}',
forTesting: response.forTesting ?? true,
active: response.active ?? true,
);