toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (aggregationInfo != null) 'aggregationInfo': aggregationInfo!,
      if (currencyConversionRate != null)
        'currencyConversionRate': currencyConversionRate!,
      if (effectiveTime != null) 'effectiveTime': effectiveTime!,
      if (pricingExpression != null) 'pricingExpression': pricingExpression!,
      if (summary != null) 'summary': summary!,
    };