deleteUser method
Delete User Data from MoEngage Server
appId - MoEngage App ID
@returns - Instance of Future of type UserDeletionData
@since 1.1.0
Implementation
@override
Future<UserDeletionData> deleteUser(String appId) async {
try {
final result = await _methodChannel.invokeMethod(
methodNameDeleteUser,
getAccountMeta(appId),
);
return Future.value(
PayloadMapper().deSerializeDeleteUserData(result.toString(), appId));
} catch (ex) {
Logger.e(' $tag deleteUser(): Error', error: ex);
return Future.error(ex);
}
}