DescribePortfolioSharesOutput.fromJson constructor

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

Implementation

factory DescribePortfolioSharesOutput.fromJson(Map<String, dynamic> json) {
  return DescribePortfolioSharesOutput(
    nextPageToken: json['NextPageToken'] as String?,
    portfolioShareDetails: (json['PortfolioShareDetails'] as List?)
        ?.whereNotNull()
        .map((e) => PortfolioShareDetail.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}