CreatePackagingConfigurationResponse.fromJson constructor

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

Implementation

factory CreatePackagingConfigurationResponse.fromJson(
    Map<String, dynamic> json) {
  return CreatePackagingConfigurationResponse(
    arn: json['arn'] as String?,
    cmafPackage: json['cmafPackage'] != null
        ? CmafPackage.fromJson(json['cmafPackage'] as Map<String, dynamic>)
        : null,
    dashPackage: json['dashPackage'] != null
        ? DashPackage.fromJson(json['dashPackage'] as Map<String, dynamic>)
        : null,
    hlsPackage: json['hlsPackage'] != null
        ? HlsPackage.fromJson(json['hlsPackage'] as Map<String, dynamic>)
        : null,
    id: json['id'] as String?,
    mssPackage: json['mssPackage'] != null
        ? MssPackage.fromJson(json['mssPackage'] as Map<String, dynamic>)
        : null,
    packagingGroupId: json['packagingGroupId'] as String?,
    tags: (json['tags'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
  );
}