toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (capCostOption != null) 'capCostOption': capCostOption!,
if (endDate != null)
'endDate':
"${endDate!.year.toString().padLeft(4, '0')}-${endDate!.month.toString().padLeft(2, '0')}-${endDate!.day.toString().padLeft(2, '0')}",
if (flighted != null) 'flighted': flighted!,
if (floodlightActivityId != null)
'floodlightActivityId': floodlightActivityId!,
if (pricingPeriods != null) 'pricingPeriods': pricingPeriods!,
if (pricingType != null) 'pricingType': pricingType!,
if (startDate != null)
'startDate':
"${startDate!.year.toString().padLeft(4, '0')}-${startDate!.month.toString().padLeft(2, '0')}-${startDate!.day.toString().padLeft(2, '0')}",
if (testingStartDate != null)
'testingStartDate':
"${testingStartDate!.year.toString().padLeft(4, '0')}-${testingStartDate!.month.toString().padLeft(2, '0')}-${testingStartDate!.day.toString().padLeft(2, '0')}",
};