toJson method
Implementation
Map<String, dynamic> toJson() {
final custom = this.custom;
final conditionalSplit = this.conditionalSplit;
final description = this.description;
final email = this.email;
final holdout = this.holdout;
final multiCondition = this.multiCondition;
final push = this.push;
final randomSplit = this.randomSplit;
final sms = this.sms;
final wait = this.wait;
return {
if (custom != null) 'CUSTOM': custom,
if (conditionalSplit != null) 'ConditionalSplit': conditionalSplit,
if (description != null) 'Description': description,
if (email != null) 'EMAIL': email,
if (holdout != null) 'Holdout': holdout,
if (multiCondition != null) 'MultiCondition': multiCondition,
if (push != null) 'PUSH': push,
if (randomSplit != null) 'RandomSplit': randomSplit,
if (sms != null) 'SMS': sms,
if (wait != null) 'Wait': wait,
};
}