toJson method
Implementation
Map<String, dynamic> toJson() {
final streamEnabled = this.streamEnabled;
final streamViewType = this.streamViewType;
return {
'StreamEnabled': streamEnabled,
if (streamViewType != null) 'StreamViewType': streamViewType.toValue(),
};
}