Future<void> purgeUser(String sdkId, User user) async { final res = await _methodChannel.invokeMethod<String>( 'UserApi.purgeUser', { "sdkId": sdkId, "user": jsonEncode(User.encode(user)), } ); }