getRecord method

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

Implementation

Future<core.XRPCResponse<Record>> getRecord({
  required core.AtUri uri,
  String? cid,
  Map<String, String>? headers,
}) async =>
    await _ctx.get(
      ns.comAtprotoRepoGetRecord,
      headers: headers,
      parameters: {
        'repo': uri.hostname,
        'collection': uri.collection,
        'rkey': uri.rkey,
        'cid': cid,
      },
      to: Record.fromJson,
    );