getMerchantBrandingDetails method
Future<Response>
getMerchantBrandingDetails(
- String merchantId
)
Implementation
Future<Response> getMerchantBrandingDetails(String merchantId) async {
//debugPrint('Calling get merchant branding details api ${StringConstants.getMerchantBrandingDetails} with merchantId $merchantId');
final Map<String, String> headers = <String, String>{
'Content-Type': 'application/json',
};
final getMerchantDetailsRequestJson = jsonEncode({"me_id": merchantId});
try {
final Response response = await http.post(
Uri.parse(StringConstants.getMerchantBrandingDetails),
body: getMerchantDetailsRequestJson,
headers: headers);
return response;
} catch (e) {
//debugPrint('Fetch merchant branding details api exception is ${e.toString()}');
rethrow;
}
}