TreatmentResource class

Specifies the settings for a campaign treatment. A treatment is a variation of a campaign that's used for A/B testing of a campaign.

Constructors

TreatmentResource({required String id, required int sizePercent, CustomDeliveryConfiguration? customDeliveryConfiguration, MessageConfiguration? messageConfiguration, Schedule? schedule, CampaignState? state, TemplateConfiguration? templateConfiguration, String? treatmentDescription, String? treatmentName})
TreatmentResource.fromJson(Map<String, dynamic> json)
factory

Properties

customDeliveryConfiguration CustomDeliveryConfiguration?
The delivery configuration settings for sending the treatment through a custom channel. This object is required if the MessageConfiguration object for the treatment specifies a CustomMessage object.
final
hashCode int
The hash code for this object.
no setterinherited
id String
The unique identifier for the treatment.
final
messageConfiguration MessageConfiguration?
The message configuration settings for the treatment.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schedule Schedule?
The schedule settings for the treatment.
final
sizePercent int
The allocated percentage of users (segment members) that the treatment is sent to.
final
state CampaignState?
The current status of the treatment.
final
templateConfiguration TemplateConfiguration?
The message template to use for the treatment.
final
treatmentDescription String?
The custom description of the treatment.
final
treatmentName String?
The custom name of the treatment.
final

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