create method

Future<XRPCResponse<RepoCreateRecordOutput>> create({
  1. required RepoStrongRef subject,
  2. DateTime? createdAt,
  3. RepoStrongRef? via,
  4. String? rkey,
  5. bool? validate,
  6. String? swapCommit,
  7. Map<String, String>? $headers,
  8. Map<String, String>? $unknown,
})

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