put method

Future<XRPCResponse<RepoPutRecordOutput>> put({
  1. required String uri,
  2. String? cid,
  3. required String val,
  4. required DateTime cts,
  5. DateTime? exp,
  6. required String rkey,
  7. bool? validate,
  8. String? swapRecord,
  9. String? swapCommit,
  10. Map<String, String>? $headers,
  11. Map<String, String>? $unknown,
})

Implementation

Future<XRPCResponse<RepoPutRecordOutput>> put({
  required String uri,
  String? cid,
  required String val,
  required DateTime cts,
  DateTime? exp,
  required String rkey,
  bool? validate,
  String? swapRecord,
  String? swapCommit,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await comAtprotoRepoPutRecord(
  repo: ctx.repo,
  collection: ids.comAtprotoLabelRecord,
  rkey: rkey,
  validate: validate,
  record: {
    r'$type': 'com.atproto.label.record',
    ...?$unknown,
    'uri': uri,
    if (cid != null) 'cid': cid,
    'val': val,
    'cts': iso8601(cts),
    if (exp != null) 'exp': iso8601(exp),
  },
  swapRecord: swapRecord,
  swapCommit: swapCommit,
  $ctx: ctx,
  $headers: $headers,
);