put method

Future<XRPCResponse<RepoPutRecordOutput>> put({
  1. required String text,
  2. List<RichtextFacet>? facets,
  3. ReplyRef? reply,
  4. UFeedPostEmbed? embed,
  5. List<String>? langs,
  6. UFeedPostLabels? labels,
  7. List<String>? tags,
  8. DateTime? createdAt,
  9. required String rkey,
  10. bool? validate,
  11. String? swapRecord,
  12. String? swapCommit,
  13. Map<String, String>? $headers,
  14. Map<String, String>? $unknown,
})

Implementation

Future<XRPCResponse<RepoPutRecordOutput>> put({
  required String text,
  List<RichtextFacet>? facets,
  ReplyRef? reply,
  UFeedPostEmbed? embed,
  List<String>? langs,
  UFeedPostLabels? labels,
  List<String>? tags,
  DateTime? createdAt,
  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.appBskyFeedPost,
  rkey: rkey,
  validate: validate,
  record: {
    ...?$unknown,
    'text': text,
    if (facets != null) 'facets': facets.map((e) => e.toJson()).toList(),
    if (reply != null) 'reply': reply.toJson(),
    if (embed != null) 'embed': embed.toJson(),
    if (langs != null) 'langs': langs,
    if (labels != null) 'labels': labels.toJson(),
    if (tags != null) 'tags': tags,
    'createdAt': iso8601(createdAt),
  },
  swapRecord: swapRecord,
  swapCommit: swapCommit,
  $ctx: _ctx,
  $headers: $headers,
);