PostView class

Available extensions
Annotations
  • @freezed

Constructors

PostView({@Default(appBskyFeedDefsPostView) @JsonKey(name: r'$type') String $type, @AtUriConverter() required AtUri uri, required String cid, @ProfileViewBasicConverter() required ProfileViewBasic author, @PostRecordConverter() required PostRecord record, @UPostViewEmbedConverter() UPostViewEmbed? embed, @Default(0) int replyCount, @Default(0) int repostCount, @Default(0) int likeCount, @Default(0) int quoteCount, required DateTime indexedAt, @ViewerStateConverter() @Default(ViewerState()) ViewerState viewer, @LabelConverter() List<Label>? labels, @ThreadgateViewConverter() @Default(ThreadgateView()) ThreadgateView threadgate, @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown})
const
factory
PostView.fromJson(Map<String, dynamic> json)
factory

Properties

$type String
The unique namespace for this lex object.
no setterinherited
$unknown Map<String, dynamic>?
Contains unknown objects not defined in Lexicon.
no setterinherited
author ProfileViewBasic
no setterinherited
cid String
no setterinherited
copyWith → $PostViewCopyWith<PostView>
no setterinherited
embed UPostViewEmbed?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
indexedAt DateTime
no setterinherited
labels List<Label>?
no setterinherited
likeCount int
no setterinherited
quoteCount int
no setterinherited
record PostRecord
no setterinherited
replyCount int
no setterinherited
repostCount int
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
threadgate ThreadgateView
no setterinherited
uri AtUri
no setterinherited
viewer ViewerState
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited