ThreadedCommentResponse class

Available extensions
Annotations
  • @freezed
  • @immutable
  • @JsonSerializable.new()

Constructors

ThreadedCommentResponse({List<Attachment>? attachments, required double confidenceScore, double? controversyScore, required DateTime createdAt, Map<String, Object?>? custom, DateTime? deletedAt, required int downvoteCount, required String id, List<FeedsReactionResponse>? latestReactions, required List<UserResponse> mentionedUsers, RepliesMeta? meta, ModerationV2Response? moderation, required String objectId, required String objectType, required List<FeedsReactionResponse> ownReactions, String? parentId, required int reactionCount, Map<String, ReactionGroupResponse>? reactionGroups, List<ThreadedCommentResponse>? replies, required int replyCount, required int score, required String status, String? text, required DateTime updatedAt, required int upvoteCount, required UserResponse user})
const

Properties

attachments List<Attachment>?
final
confidenceScore double
final
controversyScore double?
final
copyWith → $ThreadedCommentResponseCopyWith<ThreadedCommentResponse>
Create a copy of ThreadedCommentResponse with the given fields replaced by the non-null parameter values.
no setterinherited
createdAt DateTime
final
custom Map<String, Object?>?
final
deletedAt DateTime?
final
downvoteCount int
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
latestReactions List<FeedsReactionResponse>?
final
mentionedUsers List<UserResponse>
final
meta RepliesMeta?
final
moderation ModerationV2Response?
final
objectId String
final
objectType String
final
ownReactions List<FeedsReactionResponse>
final
parentId String?
final
reactionCount int
final
reactionGroups Map<String, ReactionGroupResponse>?
final
replies List<ThreadedCommentResponse>?
final
replyCount int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
score int
final
status String
final
text String?
final
updatedAt DateTime
final
upvoteCount int
final
user UserResponse
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toModel() ThreadedCommentData

Available on ThreadedCommentResponse, provided by the ThreadedCommentResponseMapper extension

Converts this API comment response to a domain ThreadedCommentData instance.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(Map<String, dynamic> json) ThreadedCommentResponse