toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'enabled': enabled,
'questions': questions.map((e) => e.toMap()).toList(),
if (offer != null) 'offer': offer!.toMap(),
if (pause != null) 'pause': pause!.toMap(),
if (variantId != null) 'variantId': variantId,
};
}