DescribePortfolioOutput.fromJson constructor

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

Implementation

factory DescribePortfolioOutput.fromJson(Map<String, dynamic> json) {
  return DescribePortfolioOutput(
    budgets: (json['Budgets'] as List?)
        ?.whereNotNull()
        .map((e) => BudgetDetail.fromJson(e as Map<String, dynamic>))
        .toList(),
    portfolioDetail: json['PortfolioDetail'] != null
        ? PortfolioDetail.fromJson(
            json['PortfolioDetail'] as Map<String, dynamic>)
        : null,
    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(),
  );
}