createRecord method
Implementation
Future<core.XRPCResponse<StrongRef>> createRecord({
required core.NSID collection,
required Map<String, dynamic> record,
String? rkey,
bool? validate,
String? swapRecordCid,
String? swapCommitCid,
}) async =>
await _ctx.post(
ns.comAtprotoRepoCreateRecord,
body: {
'repo': _ctx.session?.did,
'collection': collection.toString(),
'rkey': rkey,
'record': record,
'validate': validate,
'swapRecord': swapRecordCid,
'swapCommit': swapCommitCid
},
to: StrongRef.fromJson,
);