put method
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,
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,
);