StrongRef constructor

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

Implementation

@JsonSerializable(includeIfNull: false)
const factory StrongRef({
  /// The unique namespace for this lex object.
  ///
  /// `com.atproto.repo.strongRef`
  @Default(comAtprotoRepoStrongRef) @JsonKey(name: r'$type') String $type,
  @AtUriConverter() required AtUri uri,
  required String cid,

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