put method

Future<XRPCResponse<RepoPutRecordOutput>> put({
  1. required bool read,
  2. required bool write,
  3. required String rkey,
  4. bool? validate,
  5. String? swapRecord,
  6. String? swapCommit,
  7. Map<String, String>? $headers,
  8. Map<String, String>? $unknown,
})

Implementation

Future<XRPCResponse<RepoPutRecordOutput>> put({
  required bool read,
  required bool write,
  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.comAtprotoMemberspaceMember,
  rkey: rkey,
  validate: validate,
  record: {
    r'$type': 'com.atproto.memberspace.member',
    ...?$unknown,
    'read': read,
    'write': write,
  },
  swapRecord: swapRecord,
  swapCommit: swapCommit,
  $ctx: ctx,
  $headers: $headers,
);