Create constructor

  1. @JsonSerializable(includeIfNull: false)
const Create({
  1. @Default(comAtprotoRepoApplyWritesCreate) @JsonKey(name: r'$type') String $type,
  2. @NSIDConverter() required NSID collection,
  3. String? rkey,
  4. required Map<String, dynamic> value,
  5. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory Create({
  /// The unique namespace for this lex object.
  ///
  /// `com.atproto.repo.applyWrites#create`
  @Default(comAtprotoRepoApplyWritesCreate)
  @JsonKey(name: r'$type')
  String $type,
  @NSIDConverter() required NSID collection,
  String? rkey,
  required Map<String, dynamic> value,

  /// Contains unknown objects not defined in Lexicon.
  @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
}) = _Create;