ReasonRepost constructor

  1. @JsonSerializable(includeIfNull: false)
const ReasonRepost({
  1. @Default(appBskyFeedDefsReasonRepost) @JsonKey(name: r'$type') String $type,
  2. @ProfileViewBasicConverter() required ProfileViewBasic by,
  3. required DateTime indexedAt,
  4. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory ReasonRepost({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.feed.defs#reasonRepost`
  @Default(appBskyFeedDefsReasonRepost) @JsonKey(name: r'$type') String $type,
  @ProfileViewBasicConverter() required ProfileViewBasic by,
  required DateTime indexedAt,

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