toJson method

Map<String, dynamic> toJson()

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,
  };
}