PubSubComment class

Constructors

PubSubComment({required String id, required String tenantId, String? userId, required String urlId, required String commenterName, String? commenterLink, required String commentHTML, required String comment, String? parentId, int? votes, int? votesUp, int? votesDown, required bool verified, String? avatarSrc, bool? hasImages, bool? hasLinks, 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 [], int? flagCount, String? domain, required String url, String? pageTitle, DateTime? expireAt, bool? reviewed, bool? hasCode, required bool approved, required String? locale, bool? isBannedUser, List<String>? groupIds = const [], bool? isLive, bool? hidden, required String date})
Returns a new PubSubComment instance.

Properties

anonUserId ↔ String?
getter/setter pair
approved ↔ bool
getter/setter pair
avatarSrc ↔ String?
getter/setter pair
badges ↔ List<CommentUserBadgeInfo>?
getter/setter pair
comment ↔ String
getter/setter pair
getter/setter pair
commenterName ↔ String
getter/setter pair
commentHTML ↔ String
getter/setter pair
date ↔ String
getter/setter pair
displayLabel ↔ String?
getter/setter pair
domain ↔ String?
getter/setter pair
expireAt ↔ DateTime?
getter/setter pair
feedbackIds ↔ List<String>
getter/setter pair
flagCount ↔ int?
getter/setter pair
groupIds ↔ List<String>?
getter/setter pair
hasCode ↔ 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
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
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
hidden ↔ 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
isBannedUser ↔ 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
isLive ↔ 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
locale ↔ String?
getter/setter pair
pageTitle ↔ String?
getter/setter pair
parentId ↔ String?
getter/setter pair
rating ↔ double?
getter/setter pair
reviewed ↔ 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
tenantId ↔ String
getter/setter pair
url ↔ String
getter/setter pair
urlId ↔ String
getter/setter pair
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) → PubSubComment?
Returns a new PubSubComment instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<PubSubComment>
mapFromJson(dynamic json) → Map<String, PubSubComment>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<PubSubComment>>

Constants

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