requestAccountDelete method

Future<Tuple2> requestAccountDelete()

Implementation

Future<Tuple2> requestAccountDelete() async {
  http.Response res =
      await api.post("com.atproto.server.requestAccountDelete", headers: {
    "Content-Type": "application/json",
    "Authorization": "Bearer ${api.session.accessJwt}"
  });
  Map<String, dynamic> body =
      res.statusCode == 200 ? {} : json.decode(res.body);
  return Tuple2<int, Map<String, dynamic>>(res.statusCode, body);
}