create method
Implementation
Future<XRPCResponse<RepoCreateRecordOutput>> create({
DateTime? createdAt,
required AtUri post,
List<AtUri>? detachedEmbeddingUris,
List<UFeedPostgateEmbeddingRules>? embeddingRules,
String? rkey,
bool? validate,
String? swapCommit,
Map<String, String>? $headers,
Map<String, String>? $unknown,
}) async => await comAtprotoRepoCreateRecord(
repo: _ctx.repo,
collection: ids.appBskyFeedPostgate,
rkey: rkey,
validate: validate,
record: {
...?$unknown,
'createdAt': iso8601(createdAt),
'post': post.toString(),
if (detachedEmbeddingUris != null)
'detachedEmbeddingUris': detachedEmbeddingUris
.map((e) => e.toString())
.toList(),
if (embeddingRules != null)
'embeddingRules': embeddingRules.map((e) => e.toJson()).toList(),
},
swapCommit: swapCommit,
$ctx: _ctx,
$headers: $headers,
);