factory Portfolio.fromJson(Map<String, dynamic> data) => Portfolio( listFromJson(data, 'positions', (d) => PortfolioPosition.fromJson(d)), );