Like constructor

  1. @JsonSerializable(includeIfNull: false)
const Like({
  1. @Default(appBskyFeedGetLikesLike) @JsonKey(name: r'$type') String $type,
  2. required DateTime indexedAt,
  3. required DateTime createdAt,
  4. @ProfileViewConverter() required ProfileView actor,
  5. @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory Like({
  /// The unique namespace for this lex object.
  ///
  /// `app.bsky.feed.getLikes#like`
  @Default(appBskyFeedGetLikesLike) @JsonKey(name: r'$type') String $type,
  required DateTime indexedAt,
  required DateTime createdAt,
  @ProfileViewConverter() required ProfileView actor,

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