parse method
Parse the raw
data received from the API into an instance of the type of this manager.
Implementation
@override
AuditLogEntry parse(Map<String, Object?> raw) {
return AuditLogEntry(
id: Snowflake.parse(raw['id']!),
manager: this,
targetId: maybeParse(raw['target_id'], Snowflake.parse),
changes: maybeParseMany(raw['changes'], parseAuditLogChange),
userId: maybeParse(raw['user_id'], Snowflake.parse),
actionType: AuditLogEvent.parse(raw['action_type'] as int),
options: maybeParse(raw['options'], parseAuditLogEntryInfo),
reason: raw['reason'] as String?,
);
}