GetPlaybackConfigurationResponse.fromJson constructor

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

Implementation

factory GetPlaybackConfigurationResponse.fromJson(Map<String, dynamic> json) {
  return GetPlaybackConfigurationResponse(
    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,
    livePreRollConfiguration: json['LivePreRollConfiguration'] != null
        ? LivePreRollConfiguration.fromJson(
            json['LivePreRollConfiguration'] 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?,
  );
}