BalanceData.fromJson constructor
BalanceData.fromJson(
- Map<String, dynamic> json
)
Implementation
BalanceData.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'];
cashAndCashEquivalents = json['cashAndCashEquivalents']?.toDouble();
shortTermInvestments = json['shortTermInvestments']?.toDouble();
inventory = json['inventory']?.toDouble();
otherCurrentAssets = json['otherCurrentAssets']?.toDouble();
goodwill = json['goodwill']?.toDouble();
intangibleAssets = json['intangibleAssets']?.toDouble();
goodwillAndIntangibleAssets =
json['goodwillAndIntangibleAssets']?.toDouble();
longTermInvestments = json['longTermInvestments']?.toDouble();
taxAssets = json['taxAssets']?.toDouble();
otherNonCurrentAssets = json['otherNonCurrentAssets']?.toDouble();
totalNonCurrentAssets = json['totalNonCurrentAssets']?.toDouble();
otherAssets = json['otherAssets']?.toDouble();
totalAssets = json['totalAssets']?.toDouble();
shortTermDebt = json['shortTermDebt']?.toDouble();
taxPayables = json['taxPayables']?.toDouble();
deferredRevenue = json['deferredRevenue']?.toDouble();
otherCurrentLiabilities = json['otherCurrentLiabilities']?.toDouble();
longTermDebt = json['longTermDebt']?.toDouble();
deferredRevenueNonCurrent = json['deferredRevenueNonCurrent']?.toDouble();
deferredTaxLiabilitiesNonCurrent =
json['deferredTaxLiabilitiesNonCurrent']?.toDouble();
otherNonCurrentLiabilities = json['otherNonCurrentLiabilities']?.toDouble();
totalNonCurrentLiabilities = json['totalNonCurrentLiabilities']?.toDouble();
otherLiabilities = json['otherLiabilities']?.toDouble();
capitalLeaseObligations = json['capitalLeaseObligations']?.toDouble();
totalLiabilities = json['totalLiabilities']?.toDouble();
preferredStock = json['preferredStock']?.toDouble();
commonStock = json['commonStock']?.toDouble();
retainedEarnings = json['retainedEarnings']?.toDouble();
othertotalStockholdersEquity =
json['othertotalStockholdersEquity']?.toDouble();
totalStockholdersEquity = json['totalStockholdersEquity']?.toDouble();
minorityInterest = json['minorityInterest']?.toDouble();
totalEquity = json['totalEquity']?.toDouble();
totalLiabilitiesAndTotalEquity =
json['totalLiabilitiesAndTotalEquity']?.toDouble();
totalInvestments = json['totalInvestments']?.toDouble();
totalDebt = json['totalDebt']?.toDouble();
netDebt = json['netDebt']?.toDouble();
link = json['link'];
finalLink = json['finalLink'];
accountsPayable = json['accountsPayable']?.toDouble();
cashShortTermInvestments = json['cashShortTermInvestments']?.toDouble();
currentAssets = json['currentAssets']?.toDouble();
currentLiabilities = json['currentLiabilities']?.toDouble();
liabilitiesShareholdersEquity =
json['liabilitiesShareholdersEquity']?.toDouble();
otherEquity = json['otherEquity']?.toDouble();
propertyPlantEquipment = json['propertyPlantEquipment']?.toDouble();
totalReceivables = json['totalReceivables']?.toDouble();
}