DescribeProductOutput.fromJson constructor

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

Implementation

factory DescribeProductOutput.fromJson(Map<String, dynamic> json) {
  return DescribeProductOutput(
    budgets: (json['Budgets'] as List?)
        ?.whereNotNull()
        .map((e) => BudgetDetail.fromJson(e as Map<String, dynamic>))
        .toList(),
    launchPaths: (json['LaunchPaths'] as List?)
        ?.whereNotNull()
        .map((e) => LaunchPath.fromJson(e as Map<String, dynamic>))
        .toList(),
    productViewSummary: json['ProductViewSummary'] != null
        ? ProductViewSummary.fromJson(
            json['ProductViewSummary'] as Map<String, dynamic>)
        : null,
    provisioningArtifacts: (json['ProvisioningArtifacts'] as List?)
        ?.whereNotNull()
        .map((e) => ProvisioningArtifact.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}