import 'package:json_annotation/json_annotation.dart';

part 'portfolio_model.g.dart';

@JsonSerializable()
class PortfolioModel {
  final String date;
  final String title;
  final String status;
  final String investmentAmountSAR;
  final String investmentAmountUSD;
  final String currentValuationSAR;
  final String currentValuationUSD;
  final String totalReturnPercentage;

  PortfolioModel({
    required this.date,
    required this.title,
    required this.status,
    required this.investmentAmountSAR,
    required this.investmentAmountUSD,
    required this.currentValuationSAR,
    required this.currentValuationUSD,
    required this.totalReturnPercentage,
  });

  factory PortfolioModel.fromJson(Map<String, dynamic> json) =>
      _$PortfolioModelFromJson(json);

  Map<String, dynamic> toJson() => _$PortfolioModelToJson(this);
}

List<PortfolioModel> portfolioModelList = [
  PortfolioModel(
    date: "Mar 01 2024",
    title: "Private equity portfolio I",
    status: "Pending",
    investmentAmountSAR: "SAR 100,000",
    investmentAmountUSD: "26,700",
    currentValuationSAR: "SAR 100,000",
    currentValuationUSD: "26,700",
    totalReturnPercentage: "20.0%",
  ),
  PortfolioModel(
    date: "Sept 1 2023",
    title: "Real estate portfolio IV",
    status: "Pending",
    investmentAmountSAR: "SAR 50,000",
    investmentAmountUSD: "13,350",
    currentValuationSAR: "SAR 55,000",
    currentValuationUSD: "14,685",
    totalReturnPercentage: "10.0%",
  ),
  PortfolioModel(
    date: "Jul 10 2025",
    title: "Real estate III",
    status: "Exited",
    investmentAmountSAR: "SAR 10,000",
    investmentAmountUSD: "2,670",
    currentValuationSAR: "SAR 8,000",
    currentValuationUSD: "2,136",
    totalReturnPercentage: "20.0%",
  ),
  PortfolioModel(
    date: "Jul 10 2025",
    title: "Real estate III",
    status: "Exited",
    investmentAmountSAR: "SAR 10,000",
    investmentAmountUSD: "2,670",
    currentValuationSAR: "SAR 8,000",
    currentValuationUSD: "2,136",
    totalReturnPercentage: "20.0%",
  ),
  PortfolioModel(
    date: "Jul 10 2025",
    title: "Real estate III",
    status: "Exited",
    investmentAmountSAR: "SAR 10,000",
    investmentAmountUSD: "2,670",
    currentValuationSAR: "SAR 8,000",
    currentValuationUSD: "2,136",
    totalReturnPercentage: "20.0%",
  )
];
