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