toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final burninDestinationSettings = this.burninDestinationSettings;
  final destinationType = this.destinationType;
  final dvbSubDestinationSettings = this.dvbSubDestinationSettings;
  final embeddedDestinationSettings = this.embeddedDestinationSettings;
  final imscDestinationSettings = this.imscDestinationSettings;
  final sccDestinationSettings = this.sccDestinationSettings;
  final teletextDestinationSettings = this.teletextDestinationSettings;
  final ttmlDestinationSettings = this.ttmlDestinationSettings;
  return {
    if (burninDestinationSettings != null)
      'burninDestinationSettings': burninDestinationSettings,
    if (destinationType != null) 'destinationType': destinationType.toValue(),
    if (dvbSubDestinationSettings != null)
      'dvbSubDestinationSettings': dvbSubDestinationSettings,
    if (embeddedDestinationSettings != null)
      'embeddedDestinationSettings': embeddedDestinationSettings,
    if (imscDestinationSettings != null)
      'imscDestinationSettings': imscDestinationSettings,
    if (sccDestinationSettings != null)
      'sccDestinationSettings': sccDestinationSettings,
    if (teletextDestinationSettings != null)
      'teletextDestinationSettings': teletextDestinationSettings,
    if (ttmlDestinationSettings != null)
      'ttmlDestinationSettings': ttmlDestinationSettings,
  };
}