toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final format = this.format;
  final hlsContentProtection = this.hlsContentProtection;
  final name = this.name;
  final outputKeys = this.outputKeys;
  final playReadyDrm = this.playReadyDrm;
  return {
    if (format != null) 'Format': format,
    if (hlsContentProtection != null)
      'HlsContentProtection': hlsContentProtection,
    if (name != null) 'Name': name,
    if (outputKeys != null) 'OutputKeys': outputKeys,
    if (playReadyDrm != null) 'PlayReadyDrm': playReadyDrm,
  };
}