Update constructor

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

Implementation

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

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