DeleteMyAccount static method
Future<OperationResponse>
DeleteMyAccount(
- LoginInfo loginInfo
)
Implementation
static Future<OperationResponse> DeleteMyAccount(LoginInfo loginInfo) async {
String jwt = await getJWT();
final channel = await Channel.getDefaultIoTManagerChannel();
final stub = UserManagerClient(channel,
options: CallOptions(metadata: {'jwt': jwt}));
OperationResponse operationResponse = await stub.deleteMyAccount(loginInfo);
print('OperationResponse: ${operationResponse}');
channel.shutdown();
return operationResponse;
}