SenderInfo class

Configuration class to hold sender information for webhook messages.

This class encapsulates the username and avatar URL that can be used to customize the appearance of webhook messages sent to services like Discord or Telegram.

Constructors

SenderInfo.new({String? username, String? avatarUrl})
Creates a SenderInfo instance.
const
SenderInfo.fromJson(Map<String, dynamic> json)
factory

Properties

avatarUrl String?
The avatar URL to display for webhook messages.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
username String?
The username to display for webhook messages.
final

Methods

copyWith({String? username, String? avatarUrl}) SenderInfo
Creates a copy of this SenderInfo instance with updated values.
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