DashIsoEncryptionSettings.fromJson constructor

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

Implementation

factory DashIsoEncryptionSettings.fromJson(Map<String, dynamic> json) {
  return DashIsoEncryptionSettings(
    playbackDeviceCompatibility:
        (json['playbackDeviceCompatibility'] as String?)
            ?.toDashIsoPlaybackDeviceCompatibility(),
    spekeKeyProvider: json['spekeKeyProvider'] != null
        ? SpekeKeyProvider.fromJson(
            json['spekeKeyProvider'] as Map<String, dynamic>)
        : null,
  );
}