toJson method
Implementation
Map<String, dynamic> toJson() {
final status = this.status;
final groupName = this.groupName;
final streamName = this.streamName;
return {
'status': status.toValue(),
if (groupName != null) 'groupName': groupName,
if (streamName != null) 'streamName': streamName,
};
}