toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final albumArt = this.albumArt;
  final captions = this.captions;
  final composition = this.composition;
  final encryption = this.encryption;
  final key = this.key;
  final presetId = this.presetId;
  final rotate = this.rotate;
  final segmentDuration = this.segmentDuration;
  final thumbnailEncryption = this.thumbnailEncryption;
  final thumbnailPattern = this.thumbnailPattern;
  final watermarks = this.watermarks;
  return {
    if (albumArt != null) 'AlbumArt': albumArt,
    if (captions != null) 'Captions': captions,
    if (composition != null) 'Composition': composition,
    if (encryption != null) 'Encryption': encryption,
    if (key != null) 'Key': key,
    if (presetId != null) 'PresetId': presetId,
    if (rotate != null) 'Rotate': rotate,
    if (segmentDuration != null) 'SegmentDuration': segmentDuration,
    if (thumbnailEncryption != null)
      'ThumbnailEncryption': thumbnailEncryption,
    if (thumbnailPattern != null) 'ThumbnailPattern': thumbnailPattern,
    if (watermarks != null) 'Watermarks': watermarks,
  };
}