DescribeOriginEndpointResponse.fromJson constructor
DescribeOriginEndpointResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DescribeOriginEndpointResponse.fromJson(Map<String, dynamic> json) {
return DescribeOriginEndpointResponse(
arn: json['arn'] as String?,
authorization: json['authorization'] != null
? Authorization.fromJson(
json['authorization'] as Map<String, dynamic>)
: null,
channelId: json['channelId'] 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,
description: json['description'] as String?,
hlsPackage: json['hlsPackage'] != null
? HlsPackage.fromJson(json['hlsPackage'] as Map<String, dynamic>)
: null,
id: json['id'] as String?,
manifestName: json['manifestName'] as String?,
mssPackage: json['mssPackage'] != null
? MssPackage.fromJson(json['mssPackage'] as Map<String, dynamic>)
: null,
origination: (json['origination'] as String?)?.toOrigination(),
startoverWindowSeconds: json['startoverWindowSeconds'] as int?,
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
timeDelaySeconds: json['timeDelaySeconds'] as int?,
url: json['url'] as String?,
whitelist: (json['whitelist'] as List?)
?.whereNotNull()
.map((e) => e as String)
.toList(),
);
}