toJson method
Implementation
Map<String, dynamic> toJson() => {
"_elementId": _elementId,
"titleVariants": titleVariants,
"actions": actions.map((e) => e.toJson()).toList(),
"onPresent": onPresent != null ? true : false,
};