getRecord method

Future<XRPCResponse<RecordViewDetail>> getRecord({
  1. required AtUri uri,
  2. String? cid,
  3. Map<String, String>? $unknown,
  4. Map<String, String>? $headers,
  5. GetClient? $client,
})

Implementation

Future<XRPCResponse<RecordViewDetail>> getRecord({
  required AtUri uri,
  String? cid,
  Map<String, String>? $unknown,
  Map<String, String>? $headers,
  GetClient? $client,
}) async =>
    await _ctx.get<RecordViewDetail>(
      ns.toolsOzoneModerationGetRecord,
      headers: $headers,
      parameters: {
        'uri': uri.toString(),
        if (cid != null) 'cid': cid,
        ...?$unknown,
      },
      to: const RecordViewDetailConverter().fromJson,
      client: $client,
    );