ListPortfoliosOutput.fromJson constructor

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

Implementation

factory ListPortfoliosOutput.fromJson(Map<String, dynamic> json) {
  return ListPortfoliosOutput(
    nextPageToken: json['NextPageToken'] as String?,
    portfolioDetails: (json['PortfolioDetails'] as List?)
        ?.whereNotNull()
        .map((e) => PortfolioDetail.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}