LikeRecord constructor

  1. @JsonSerializable(includeIfNull: false)
const LikeRecord({
  1. @Default(appBskyFeedLike) @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 LikeRecord({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.feed.like`
  @Default(appBskyFeedLike) @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,
}) = _LikeRecord;