RepostRecord constructor

  1. @JsonSerializable(includeIfNull: false)
const RepostRecord({
  1. @Default(appBskyFeedRepost) @JsonKey(name: r'$type') String $type,
  2. @StrongRefConverter() required StrongRef subject,
  3. required DateTime createdAt,
  4. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory RepostRecord({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.feed.repost`
  @Default(appBskyFeedRepost) @JsonKey(name: r'$type') String $type,
  @StrongRefConverter() required StrongRef subject,
  required DateTime createdAt,

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