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