RepoCreateRecordInput constructor

  1. @JsonSerializable(includeIfNull: false)
const RepoCreateRecordInput({
  1. required String repo,
  2. required String collection,
  3. String? rkey,
  4. bool? validate,
  5. required Map<String, dynamic> record,
  6. String? swapCommit,
  7. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory RepoCreateRecordInput({
  /// The handle or DID of the repo (aka, current account).
  required String repo,

  /// The NSID of the record collection.
  required String collection,

  /// The Record Key.
  String? rkey,

  /// Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons.
  bool? validate,
  required Map<String, dynamic> record,

  /// Compare and swap with the previous commit by CID.
  String? swapCommit,

  Map<String, dynamic>? $unknown,
}) = _RepoCreateRecordInput;