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