toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final audioDuration = this.audioDuration;
  final audioFramesPerPes = this.audioFramesPerPes;
  final audioPids = this.audioPids;
  final nielsenId3 = this.nielsenId3;
  final patInterval = this.patInterval;
  final pcrControl = this.pcrControl;
  final pcrPid = this.pcrPid;
  final pmtInterval = this.pmtInterval;
  final pmtPid = this.pmtPid;
  final privateMetadataPid = this.privateMetadataPid;
  final programNumber = this.programNumber;
  final scte35Pid = this.scte35Pid;
  final scte35Source = this.scte35Source;
  final timedMetadata = this.timedMetadata;
  final timedMetadataPid = this.timedMetadataPid;
  final transportStreamId = this.transportStreamId;
  final videoPid = this.videoPid;
  return {
    if (audioDuration != null) 'audioDuration': audioDuration.toValue(),
    if (audioFramesPerPes != null) 'audioFramesPerPes': audioFramesPerPes,
    if (audioPids != null) 'audioPids': audioPids,
    if (nielsenId3 != null) 'nielsenId3': nielsenId3.toValue(),
    if (patInterval != null) 'patInterval': patInterval,
    if (pcrControl != null) 'pcrControl': pcrControl.toValue(),
    if (pcrPid != null) 'pcrPid': pcrPid,
    if (pmtInterval != null) 'pmtInterval': pmtInterval,
    if (pmtPid != null) 'pmtPid': pmtPid,
    if (privateMetadataPid != null) 'privateMetadataPid': privateMetadataPid,
    if (programNumber != null) 'programNumber': programNumber,
    if (scte35Pid != null) 'scte35Pid': scte35Pid,
    if (scte35Source != null) 'scte35Source': scte35Source.toValue(),
    if (timedMetadata != null) 'timedMetadata': timedMetadata.toValue(),
    if (timedMetadataPid != null) 'timedMetadataPid': timedMetadataPid,
    if (transportStreamId != null) 'transportStreamId': transportStreamId,
    if (videoPid != null) 'videoPid': videoPid,
  };
}