NIMAntiSpamOption class Null safety

Anti-spam configuration

Annotations
  • @JsonSerializable()

Constructors

NIMAntiSpamOption({bool enable = true, required String? content, String? antiSpamConfigId})
NIMAntiSpamOption.fromMap(Map<String, dynamic> map)
factory

Properties

antiSpamConfigId ↔ String?
GuardEase anti-spam configuration ID used to apply different configurations.
read / write
content ↔ String?
User-defined spam field, The content must be in JSON format and applies only to custom messages.
read / write
enable ↔ bool
Check if the content is moderated by GuardEase. The option is valid for accounts that have activated GuardEase. The default value is true. If your app uses GuardEase, messages are moderated by GuardEase by default. If the enable option is set to false for a message, the message will be reviewed by generic anti-spam rules instead of GuardEase.
@JsonKey(defaultValue: false), read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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