toJson method
Serialises the class data to a JSON-compatible format.
Implementation
Map<String, dynamic> toJson() {
return {
'channelId': channelId,
'shouldShowIndicator': shouldShowIndicator,
'prerequisites': prerequisites.toJson(),
};
}