PlaybackConfiguration.fromJson constructor
PlaybackConfiguration.fromJson(
- Map<String, dynamic> json
)
Implementation
factory PlaybackConfiguration.fromJson(Map<String, dynamic> json) {
return PlaybackConfiguration(
adDecisionServerUrl: json['AdDecisionServerUrl'] as String?,
availSuppression: json['AvailSuppression'] != null
? AvailSuppression.fromJson(
json['AvailSuppression'] as Map<String, dynamic>)
: null,
bumper: json['Bumper'] != null
? Bumper.fromJson(json['Bumper'] as Map<String, dynamic>)
: null,
cdnConfiguration: json['CdnConfiguration'] != null
? CdnConfiguration.fromJson(
json['CdnConfiguration'] as Map<String, dynamic>)
: null,
dashConfiguration: json['DashConfiguration'] != null
? DashConfiguration.fromJson(
json['DashConfiguration'] as Map<String, dynamic>)
: null,
hlsConfiguration: json['HlsConfiguration'] != null
? HlsConfiguration.fromJson(
json['HlsConfiguration'] as Map<String, dynamic>)
: null,
manifestProcessingRules: json['ManifestProcessingRules'] != null
? ManifestProcessingRules.fromJson(
json['ManifestProcessingRules'] as Map<String, dynamic>)
: null,
name: json['Name'] as String?,
personalizationThresholdSeconds:
json['PersonalizationThresholdSeconds'] as int?,
playbackConfigurationArn: json['PlaybackConfigurationArn'] as String?,
playbackEndpointPrefix: json['PlaybackEndpointPrefix'] as String?,
sessionInitializationEndpointPrefix:
json['SessionInitializationEndpointPrefix'] as String?,
slateAdUrl: json['SlateAdUrl'] as String?,
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
transcodeProfileName: json['TranscodeProfileName'] as String?,
videoContentSourceUrl: json['VideoContentSourceUrl'] as String?,
);
}