CreateResult constructor

  1. @JsonSerializable(includeIfNull: false)
const CreateResult({
  1. @Default(comAtprotoRepoApplyWritesCreateResult) @JsonKey(name: r'$type') String $type,
  2. @AtUriConverter() required AtUri uri,
  3. required String cid,
  4. @UCreateResultValidationStatusConverter() UCreateResultValidationStatus? validationStatus,
  5. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory CreateResult({
  /// The unique namespace for this lex object.
  ///
  /// `com.atproto.repo.applyWrites#createResult`
  @Default(comAtprotoRepoApplyWritesCreateResult)
  @JsonKey(name: r'$type')
  String $type,
  @AtUriConverter() required AtUri uri,
  required String cid,
  @UCreateResultValidationStatusConverter()
  UCreateResultValidationStatus? validationStatus,

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