getLatestCommit method

Future<XRPCResponse<RepoLatestCommit>> getLatestCommit({
  1. required String did,
  2. Map<String, String>? headers,
})

Implementation

Future<core.XRPCResponse<RepoLatestCommit>> getLatestCommit({
  required String did,
  Map<String, String>? headers,
}) async =>
    await _ctx.get(
      ns.comAtprotoSyncGetLatestCommit,
      headers: headers,
      parameters: {
        'did': did,
      },
      to: RepoLatestCommit.fromJson,
    );