toValue method
Implementation
String toValue() {
switch (this) {
case CampaignStatus.scheduled:
return 'SCHEDULED';
case CampaignStatus.executing:
return 'EXECUTING';
case CampaignStatus.pendingNextRun:
return 'PENDING_NEXT_RUN';
case CampaignStatus.completed:
return 'COMPLETED';
case CampaignStatus.paused:
return 'PAUSED';
case CampaignStatus.deleted:
return 'DELETED';
case CampaignStatus.invalid:
return 'INVALID';
}
}