create method
Implementation
Future<XRPCResponse<RepoCreateRecordOutput>> create({
required RepoStrongRef subject,
DateTime? createdAt,
RepoStrongRef? via,
String? rkey,
bool? validate,
String? swapCommit,
Map<String, String>? $headers,
Map<String, String>? $unknown,
}) async => await comAtprotoRepoCreateRecord(
repo: _ctx.repo,
collection: ids.appBskyFeedLike,
rkey: rkey,
validate: validate,
record: {
...?$unknown,
'subject': subject.toJson(),
'createdAt': iso8601(createdAt),
if (via != null) 'via': via.toJson(),
},
swapCommit: swapCommit,
$ctx: _ctx,
$headers: $headers,
);