comAtprotoSyncGetHead function

Future<XRPCResponse<SyncGetHeadOutput>> comAtprotoSyncGetHead({
  1. required String did,
  2. required ServiceContext $ctx,
  3. Map<String, String>? $headers,
  4. Map<String, String>? $unknown,
})

DEPRECATED - please use com.atproto.sync.getLatestCommit instead

Implementation

Future<XRPCResponse<SyncGetHeadOutput>> comAtprotoSyncGetHead({
  required String did,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.comAtprotoSyncGetHead,
  headers: $headers,
  parameters: {...?$unknown, 'did': did},
  to: const SyncGetHeadOutputConverter().fromJson,
);