UpdatePortfolioOutput.fromJson constructor

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

Implementation

factory UpdatePortfolioOutput.fromJson(Map<String, dynamic> json) {
  return UpdatePortfolioOutput(
    portfolioDetail: json['PortfolioDetail'] != null
        ? PortfolioDetail.fromJson(
            json['PortfolioDetail'] as Map<String, dynamic>)
        : null,
    tags: (json['Tags'] as List?)
        ?.whereNotNull()
        .map((e) => Tag.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}