toJson method
Allows you to serialize object.
Implementation
Map<String, dynamic> toJson() {
Map<String, dynamic> result = {};
result["activeOptionIdx"] = activeOptionIdx;
result["notifications"] = notifications;
result["status"] = status.value;
result["type"] = type.value;
return result;
}