getCustomerInfo method
Refreshes customer information from the backend that owns the session.
Implementation
@override
Future<InappifySdkResult<CustomerInfo>> getCustomerInfo(
InappifyRefreshRequest request,
) {
return _invokeResult<CustomerInfo>(
method: InappifyChannelContract.getCustomerInfo,
payload: {
'fetchPolicy':
(request.fetchPolicy ??
(request.force
? InappifyCacheFetchPolicy.fetchCurrent
: InappifyCacheFetchPolicy.cachedOrFetched))
.name,
},
decodeData: CustomerInfo.fromJson,
);
}