PostRecord class

Available extensions
Annotations
  • @freezed

Constructors

PostRecord({@Default(appBskyFeedPost) @JsonKey(name: r'$type') String $type, required String text, @FacetConverter() List<Facet>? facets, @ReplyRefConverter() ReplyRef? reply, @UPostEmbedConverter() UPostEmbed? embed, List<String>? langs, @UPostLabelConverter() UPostLabel? labels, List<String>? tags, required DateTime createdAt, @JsonKey(name: r'$unknown') Map<String, dynamic>? $unknown})
const
factory
PostRecord.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
copyWith → $PostRecordCopyWith<PostRecord>
no setterinherited
createdAt DateTime
Client-declared timestamp when this post was originally created.
no setterinherited
embed UPostEmbed?
no setterinherited
facets List<Facet>?
Annotations of text (mentions, URLs, hashtags, etc)
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
labels UPostLabel?
Self-label values for this post. Effectively content warnings.
no setterinherited
langs List<String>?
Indicates human language of post primary text content.
no setterinherited
reply ReplyRef?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tags List<String>?
Additional hashtags, in addition to any included in post text and facets.
no setterinherited
text String
The primary post content. May be an empty string, if there are embeds.
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