toJson method
Implementation
Map<String, dynamic> toJson() {
final programNumber = this.programNumber;
final preferredChannelPipeline = this.preferredChannelPipeline;
final serviceDescriptor = this.serviceDescriptor;
final videoSettings = this.videoSettings;
return {
'programNumber': programNumber,
if (preferredChannelPipeline != null)
'preferredChannelPipeline': preferredChannelPipeline.toValue(),
if (serviceDescriptor != null) 'serviceDescriptor': serviceDescriptor,
if (videoSettings != null) 'videoSettings': videoSettings,
};
}