put method

Future<XRPCResponse<RepoPutRecordOutput>> put({
  1. String? displayName,
  2. String? description,
  3. String? pronouns,
  4. String? website,
  5. Blob? avatar,
  6. Blob? banner,
  7. UActorProfileLabels? labels,
  8. RepoStrongRef? joinedViaStarterPack,
  9. RepoStrongRef? pinnedPost,
  10. DateTime? createdAt,
  11. String rkey = 'self',
  12. bool? validate,
  13. String? swapRecord,
  14. String? swapCommit,
  15. Map<String, String>? $headers,
  16. Map<String, String>? $unknown,
})

Implementation

Future<XRPCResponse<RepoPutRecordOutput>> put({
  String? displayName,
  String? description,
  String? pronouns,
  String? website,
  Blob? avatar,
  Blob? banner,
  UActorProfileLabels? labels,
  RepoStrongRef? joinedViaStarterPack,
  RepoStrongRef? pinnedPost,
  DateTime? createdAt,
  String rkey = 'self',
  bool? validate,
  String? swapRecord,
  String? swapCommit,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await comAtprotoRepoPutRecord(
  repo: _ctx.repo,
  collection: ids.appBskyActorProfile,
  rkey: rkey,
  validate: validate,
  record: {
    ...?$unknown,
    if (displayName != null) 'displayName': displayName,
    if (description != null) 'description': description,
    if (pronouns != null) 'pronouns': pronouns,
    if (website != null) 'website': website,
    if (avatar != null) 'avatar': avatar,
    if (banner != null) 'banner': banner,
    if (labels != null) 'labels': labels.toJson(),
    if (joinedViaStarterPack != null)
      'joinedViaStarterPack': joinedViaStarterPack.toJson(),
    if (pinnedPost != null) 'pinnedPost': pinnedPost.toJson(),
    if (createdAt != null) 'createdAt': iso8601(createdAt),
  },
  swapRecord: swapRecord,
  swapCommit: swapCommit,
  $ctx: _ctx,
  $headers: $headers,
);