toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (financiallyViable != null) 'financiallyViable': financiallyViable!,
      if (presentValueOfSavingsLifetime != null)
        'presentValueOfSavingsLifetime': presentValueOfSavingsLifetime!,
      if (presentValueOfSavingsYear20 != null)
        'presentValueOfSavingsYear20': presentValueOfSavingsYear20!,
      if (savingsLifetime != null) 'savingsLifetime': savingsLifetime!,
      if (savingsYear1 != null) 'savingsYear1': savingsYear1!,
      if (savingsYear20 != null) 'savingsYear20': savingsYear20!,
    };