IncomeData.fromJson constructor

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

Implementation

IncomeData.fromJson(Map<String, dynamic> json) {
  date = json['date'];
  symbol = json['symbol'];
  reportedCurrency = json['reportedCurrency'];
  cik = json['cik'];
  fillingDate = json['fillingDate'];
  acceptedDate = json['acceptedDate'];
  year = DateTime.parse(json['date']!).year;
  period = json['period'];
  revenue = json['revenue']?.toDouble();
  grossProfitRatio = json['grossProfitRatio']?.toDouble();
  generalAndAdministrativeExpenses =
      json['generalAndAdministrativeExpenses']?.toDouble();
  sellingAndMarketingExpenses =
      json['sellingAndMarketingExpenses']?.toDouble();
  otherExpenses = json['otherExpenses']?.toDouble();
  costAndExpenses = json['costAndExpenses']?.toDouble();
  interestIncome = json['interestIncome']?.toDouble();
  interestExpense = json['interestExpense']?.toDouble();
  depreciationAndAmortization =
      json['depreciationAndAmortization']?.toDouble();
  ebitda = json['ebitda']?.toDouble();
  ebitdaratio = json['ebitdaratio']?.toDouble();
  operatingIncomeRatio = json['operatingIncomeRatio']?.toDouble();
  totalOtherIncomeExpensesNet =
      json['totalOtherIncomeExpensesNet']?.toDouble();
  incomeBeforeTaxRatio = json['incomeBeforeTaxRatio']?.toDouble();
  netIncome = json['netIncome']?.toDouble();
  netIncomeRatio = json['netIncomeRatio']?.toDouble();
  eps = json['eps']?.toDouble();
  weightedAverageShsOut = json['weightedAverageShsOut']?.toDouble();
  link = json['link'];
  finalLink = json['finalLink'];
  costOfGoodsSold = json['costOfGoodsSold']?.toDouble();
  dilutedAverageSharesOutstanding =
      json['dilutedAverageSharesOutstanding']?.toDouble();
  dilutedEPS = json['dilutedEPS']?.toDouble();
  ebit = json['ebit']?.toDouble();
  grossIncome = json['grossIncome']?.toDouble();
  pretaxIncome = json['pretaxIncome']?.toDouble();
  provisionforIncomeTaxes = json['provisionforIncomeTaxes']?.toDouble();
  researchDevelopment = json['researchDevelopment']?.toDouble();
  sgaExpense = json['sgaExpense']?.toDouble();
  totalOperatingExpense = json['totalOperatingExpense']?.toDouble();
}