put method
Future<XRPCResponse<RepoPutRecordOutput>>
put(
{ - required AtUri post,
- List<UFeedThreadgateAllow>? allow,
- DateTime? createdAt,
- List<AtUri>? hiddenReplies,
- required String rkey,
- bool? validate,
- String? swapRecord,
- String? swapCommit,
- Map<String, String>? $unknown,
})
Implementation
Future<XRPCResponse<RepoPutRecordOutput>> put({
required AtUri post,
List<UFeedThreadgateAllow>? allow,
DateTime? createdAt,
List<AtUri>? hiddenReplies,
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.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(),
},
swapRecord: swapRecord,
swapCommit: swapCommit,
$ctx: _ctx,
$headers: $headers,
);