ModerationAPIComment class

Constructors

ModerationAPIComment({bool? isLocalDeleted, double? replyCount, List<String> feedbackResults = const [], bool? isVotedUp, bool? isVotedDown, String? myVoteId, required String id, required String tenantId, required String urlId, required String url, String? pageTitle, String? userId, String? anonUserId, required String commenterName, String? commenterLink, required String commentHTML, String? parentId, required DateTime? date, String? localDateString, double? votes, double? votesUp, double? votesDown, DateTime? expireAt, bool? reviewed, String? avatarSrc, bool? isSpam, bool? permNotSpam, bool? hasLinks, bool? hasCode, required bool approved, required String? locale, bool? isBannedUser, bool? isByAdmin, bool? isByModerator, bool? isPinned, bool? isLocked, double? flagCount, String? displayLabel, List<CommentUserBadgeInfo>? badges = const [], required bool verified, List<String> feedbackIds = const [], bool? isDeleted})
Returns a new ModerationAPIComment instance.

Properties

anonUserId ↔ String?
getter/setter pair
approved ↔ bool
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
expireAt ↔ DateTime?
getter/setter pair
feedbackIds ↔ List<String>
getter/setter pair
feedbackResults ↔ List<String>
getter/setter pair
flagCount ↔ double?
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
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
isLocalDeleted ↔ 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
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
localDateString ↔ String?
getter/setter pair
locale ↔ String?
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
pageTitle ↔ String?
getter/setter pair
parentId ↔ String?
getter/setter pair
permNotSpam ↔ 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
replyCount ↔ double?
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
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
votes ↔ double?
getter/setter pair
votesDown ↔ double?
getter/setter pair
votesUp ↔ double?
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) → ModerationAPIComment?
Returns a new ModerationAPIComment instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ModerationAPIComment>
mapFromJson(dynamic json) → Map<String, ModerationAPIComment>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ModerationAPIComment>>

Constants

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