toJson method

Map<String, dynamic> toJson()

Allows you to serialize object.

Implementation

Map<String, dynamic> toJson() => {
      "activeOptionIdx": activeOptionIdx,
      "notifications": notifications,
      "status": status.value,
      "type": type.value,
    }.clearNulls();