Portfolio.fromJson constructor

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

Implementation

factory Portfolio.fromJson(Map<String, dynamic> json) => Portfolio(
      transactions: List<Transactions>.from(
          json["portfolio_items"].map((x) => Transactions.fromJson(x))),
    );