FinancialAnalysis.fromJson constructor

FinancialAnalysis.fromJson(
  1. Map json_
)

Implementation

FinancialAnalysis.fromJson(core.Map json_)
    : this(
        averageKwhPerMonth: json_.containsKey('averageKwhPerMonth')
            ? (json_['averageKwhPerMonth'] as core.num).toDouble()
            : null,
        cashPurchaseSavings: json_.containsKey('cashPurchaseSavings')
            ? CashPurchaseSavings.fromJson(json_['cashPurchaseSavings']
                as core.Map<core.String, core.dynamic>)
            : null,
        defaultBill: json_.containsKey('defaultBill')
            ? json_['defaultBill'] as core.bool
            : null,
        financedPurchaseSavings: json_.containsKey('financedPurchaseSavings')
            ? FinancedPurchaseSavings.fromJson(
                json_['financedPurchaseSavings']
                    as core.Map<core.String, core.dynamic>)
            : null,
        financialDetails: json_.containsKey('financialDetails')
            ? FinancialDetails.fromJson(json_['financialDetails']
                as core.Map<core.String, core.dynamic>)
            : null,
        leasingSavings: json_.containsKey('leasingSavings')
            ? LeasingSavings.fromJson(json_['leasingSavings']
                as core.Map<core.String, core.dynamic>)
            : null,
        monthlyBill: json_.containsKey('monthlyBill')
            ? Money.fromJson(
                json_['monthlyBill'] as core.Map<core.String, core.dynamic>)
            : null,
        panelConfigIndex: json_.containsKey('panelConfigIndex')
            ? json_['panelConfigIndex'] as core.int
            : null,
      );