AuditLogChange class

Audit Log Change structure

If new_value is not present in the change object, while old_value is, that means the property that was changed has been reset, or set to null

https://discord.com/developers/docs/resources/audit-log#audit-log-change-object-audit-log-change-structure

Annotations
  • @JsonSerializable(includeIfNull: false)

Constructors

AuditLogChange({dynamic newValue, dynamic oldValue, required AuditLogChangeKey key})
Constructor
AuditLogChange.fromJson(Map<String, dynamic> json)
From json
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
key AuditLogChangeKey
name of audit log change key
final
newValue → dynamic
new value of the key
final
oldValue → dynamic
old value of the key
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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