Create constructor

  1. @JsonSerializable(includeIfNull: false)
const Create({
  1. @Default('com.atproto.repo.applyWrites#create') String $type,
  2. required String collection,
  3. String? rkey,
  4. required Map<String, dynamic> value,
  5. Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory Create({
  @Default('com.atproto.repo.applyWrites#create') String $type,
  required String collection,

  /// NOTE: maxLength is redundant with record-key format. Keeping it temporarily to ensure backwards compatibility.
  String? rkey,
  required Map<String, dynamic> value,

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