location property
MerchantLocation
get
location
Retrieves the Merchant's Location as a Map containing city, country code, and postal code.
The Merchant Location is derived from the _raw data, and the returned map contains:
city
: The city where the merchant is located.country_code
: The country code.postal_code
: The postal code.
Returns:
- A MerchantLocation object containing the city, country code, and postal code.
Implementation
MerchantLocation get location => MerchantLocation(
city: _raw['merchant_city'] ?? '',
countryCode: _raw['country_code'] ?? '',
postalCode: _raw['merchant_postal_code'] ?? '',
);