toJson method
Implementation
Map<String, dynamic> toJson() {
final audioFramesPerPes = this.audioFramesPerPes;
final audioPids = this.audioPids;
final ecmPid = this.ecmPid;
final nielsenId3Behavior = this.nielsenId3Behavior;
final patInterval = this.patInterval;
final pcrControl = this.pcrControl;
final pcrPeriod = this.pcrPeriod;
final pcrPid = this.pcrPid;
final pmtInterval = this.pmtInterval;
final pmtPid = this.pmtPid;
final programNum = this.programNum;
final scte35Behavior = this.scte35Behavior;
final scte35Pid = this.scte35Pid;
final timedMetadataBehavior = this.timedMetadataBehavior;
final timedMetadataPid = this.timedMetadataPid;
final transportStreamId = this.transportStreamId;
final videoPid = this.videoPid;
return {
if (audioFramesPerPes != null) 'audioFramesPerPes': audioFramesPerPes,
if (audioPids != null) 'audioPids': audioPids,
if (ecmPid != null) 'ecmPid': ecmPid,
if (nielsenId3Behavior != null)
'nielsenId3Behavior': nielsenId3Behavior.toValue(),
if (patInterval != null) 'patInterval': patInterval,
if (pcrControl != null) 'pcrControl': pcrControl.toValue(),
if (pcrPeriod != null) 'pcrPeriod': pcrPeriod,
if (pcrPid != null) 'pcrPid': pcrPid,
if (pmtInterval != null) 'pmtInterval': pmtInterval,
if (pmtPid != null) 'pmtPid': pmtPid,
if (programNum != null) 'programNum': programNum,
if (scte35Behavior != null) 'scte35Behavior': scte35Behavior.toValue(),
if (scte35Pid != null) 'scte35Pid': scte35Pid,
if (timedMetadataBehavior != null)
'timedMetadataBehavior': timedMetadataBehavior.toValue(),
if (timedMetadataPid != null) 'timedMetadataPid': timedMetadataPid,
if (transportStreamId != null) 'transportStreamId': transportStreamId,
if (videoPid != null) 'videoPid': videoPid,
};
}