PublicCommentBase class

Constructors

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

Constants

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