Feedback class

Feedback submitted by the user.

Annotations

Constructors

Feedback({required int id, required String content, @JsonKey(name: "userid") required int author, required FeedbackType type, @JsonKey(name: "notes") @Default("") String comment, @JsonKey(name: "status") required int readAsInt, @JsonKey(name: "timestamp") required int createdAtTimestamp, @JsonKey(name: "lastmodified") int? modifiedAtTimestamp, @JsonKey(name: "lastmodifiedby") int? modifiedByUserId, @JsonKey(name: "logfile") String? logfile})
Feedback submitted by the user.
factory
Feedback.fromJson(Map<String, dynamic> json)
Loads feedback from a JSON map
factory

Properties

author → int
The ID of the user who submitted this feedback.
read-onlyinherited
comment → String
Comments made by modifiedByUserId when reading this feedback.
read-onlyinherited
content → String
The content of this feedback.
read-onlyinherited
copyWith → $FeedbackCopyWith<Feedback>
read-onlyinherited
createdAt → DateTime
The date this feedback was created.
read-only
createdAtTimestamp → int
The timestamp when this feedback was created.
read-onlyinherited
hashCode → int
The hash code for this object.
read-onlyinherited
id → int
The ID of this feedback.
read-onlyinherited
logfile → String?
The path to the log file of the user who submitted this feedback.
read-onlyinherited
modifiedAt → DateTime?
The date this feedback was last modified.
read-only
modifiedAtTimestamp → int?
The timestamp when this feedback was last modified.
read-onlyinherited
modifiedByUserId → int?
The ID of the user who last modified this feedback.
read-onlyinherited
read → bool
true if this feedback has been read, false otherwise.
read-only
readAsInt → int
The read status of this feedback as int.
read-onlyinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
type → FeedbackType
The type of this feedback.
read-onlyinherited
unread → bool
false if this feedback has been read, true otherwise.
read-only

Methods

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

Operators

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