PublicComment class

Constructors

PublicComment({required String id, String? userId, required String commenterName, String? commenterLink, required String commentHTML, String? parentId, required DateTime? date, int? votes, int? votesUp, int? votesDown, required bool verified, String? avatarSrc, bool? hasImages, bool? isByAdmin, bool? isByModerator, bool? isPinned, bool? isLocked, String? displayLabel, double? rating, List<CommentUserBadgeInfo>? badges = const [], int? viewCount, bool? isDeleted, bool? isDeletedUser, bool? isSpam, String? anonUserId, List<String> feedbackIds = const [], bool? requiresVerification, String? editKey, bool? approved, bool? isUnread, String? myVoteId, bool? isVotedDown, bool? isVotedUp, bool? hasChildren, int? nestedChildrenCount, int? childCount, List<PublicComment> children = const [], bool? isFlagged, bool? isBlocked})
Returns a new PublicComment instance.

Properties

anonUserId ↔ String?
getter/setter pair
approved ↔ bool?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
avatarSrc ↔ String?
getter/setter pair
badges ↔ List<CommentUserBadgeInfo>?
getter/setter pair
childCount ↔ int?
You must ask the API to count children (with asTree=true&countChildren=true), otherwise this will be null. This will be the complete direct child count, whereas children may only contain a subset based on pagination.
getter/setter pair
children ↔ List<PublicComment>
getter/setter pair
getter/setter pair
commenterName ↔ String
getter/setter pair
commentHTML ↔ String
getter/setter pair
date ↔ DateTime?
getter/setter pair
displayLabel ↔ String?
getter/setter pair
editKey ↔ String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
feedbackIds ↔ List<String>
getter/setter pair
hasChildren ↔ bool?
This is always set when asTree=true
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
hasImages ↔ bool?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
id ↔ String
getter/setter pair
isBlocked ↔ bool?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
isByAdmin ↔ bool?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
isByModerator ↔ bool?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
isDeleted ↔ bool?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
isDeletedUser ↔ bool?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
isFlagged ↔ bool?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
isLocked ↔ bool?
getter/setter pair
isPinned ↔ bool?
getter/setter pair
isSpam ↔ bool?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
isUnread ↔ bool?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
isVotedDown ↔ bool?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
isVotedUp ↔ bool?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
myVoteId ↔ String?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
nestedChildrenCount ↔ int?
The total nested child count included in this response (may be more available w/ pagination) Only set with asTree=true, otherwise this will be null.
getter/setter pair
parentId ↔ String?
getter/setter pair
rating ↔ double?
getter/setter pair
requiresVerification ↔ bool?
Please note: This property should have been non-nullable! Since the specification file does not include a default value (using the "default:" property), however, the generated source code must fall back to having a nullable type. Consider adding a "default:" property in the specification file to hide this note.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
userId ↔ String?
getter/setter pair
verified ↔ bool
getter/setter pair
viewCount ↔ int?
getter/setter pair
votes ↔ int?
getter/setter pair
votesDown ↔ int?
getter/setter pair
votesUp ↔ int?
getter/setter pair

Methods

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

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → PublicComment?
Returns a new PublicComment instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<PublicComment>
mapFromJson(dynamic json) → Map<String, PublicComment>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<PublicComment>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.