getRecord method

Future<XRPCResponse<RepoCommit>> getRecord({
  1. required AtUri uri,
  2. String? commitCid,
  3. Map<String, String>? headers,
})

Implementation

Future<core.XRPCResponse<RepoCommit>> getRecord({
  required core.AtUri uri,
  String? commitCid,
  Map<String, String>? headers,
}) async =>
    await _ctx.get(
      ns.comAtprotoSyncGetRecord,
      headers: headers,
      parameters: {
        'did': uri.hostname,
        'collection': uri.collection,
        'rkey': uri.rkey,
        'commit': commitCid,
      },
      adaptor: toRepoCommit,
      to: RepoCommit.fromJson,
    );