MsSmoothGroupSettings.fromJson constructor

MsSmoothGroupSettings.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory MsSmoothGroupSettings.fromJson(Map<String, dynamic> json) {
  return MsSmoothGroupSettings(
    additionalManifests: (json['additionalManifests'] as List?)
        ?.whereNotNull()
        .map((e) =>
            MsSmoothAdditionalManifest.fromJson(e as Map<String, dynamic>))
        .toList(),
    audioDeduplication: (json['audioDeduplication'] as String?)
        ?.toMsSmoothAudioDeduplication(),
    destination: json['destination'] as String?,
    destinationSettings: json['destinationSettings'] != null
        ? DestinationSettings.fromJson(
            json['destinationSettings'] as Map<String, dynamic>)
        : null,
    encryption: json['encryption'] != null
        ? MsSmoothEncryptionSettings.fromJson(
            json['encryption'] as Map<String, dynamic>)
        : null,
    fragmentLength: json['fragmentLength'] as int?,
    manifestEncoding:
        (json['manifestEncoding'] as String?)?.toMsSmoothManifestEncoding(),
  );
}