removeLinkedAccount static method

Future<String> removeLinkedAccount(
  1. String linkedAccountId,
  2. Request request, {
  3. Link? graphqlLink,
})

Implementation

static Future<String> removeLinkedAccount(
    String linkedAccountId, Request request,
    {Link? graphqlLink}) async {
  graphqlLink = graphqlLink ?? GraphLinkCreator.create(request);

  final req =
      GremoveLinkedAccount((b) => b..vars.linkedAccountId = linkedAccountId);
  final res = await Repository.mutate(
    graphqlLink,
    req.operation,
    req.vars.toJson(),
  );

  return GremoveLinkedAccountData_removeLinkedAccount_me.fromJson(res.data!)!
      .id;
}