DescribeProductAsAdminOutput.fromJson constructor
DescribeProductAsAdminOutput.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DescribeProductAsAdminOutput.fromJson(Map<String, dynamic> json) {
return DescribeProductAsAdminOutput(
budgets: (json['Budgets'] as List?)
?.whereNotNull()
.map((e) => BudgetDetail.fromJson(e as Map<String, dynamic>))
.toList(),
productViewDetail: json['ProductViewDetail'] != null
? ProductViewDetail.fromJson(
json['ProductViewDetail'] as Map<String, dynamic>)
: null,
provisioningArtifactSummaries: (json['ProvisioningArtifactSummaries']
as List?)
?.whereNotNull()
.map((e) =>
ProvisioningArtifactSummary.fromJson(e as Map<String, dynamic>))
.toList(),
tagOptions: (json['TagOptions'] as List?)
?.whereNotNull()
.map((e) => TagOptionDetail.fromJson(e as Map<String, dynamic>))
.toList(),
tags: (json['Tags'] as List?)
?.whereNotNull()
.map((e) => Tag.fromJson(e as Map<String, dynamic>))
.toList(),
);
}