toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (attributes != null) 'attributes': attributes!,
if (contentLanguage != null) 'contentLanguage': contentLanguage!,
if (customAttributes != null) 'customAttributes': customAttributes!,
if (dataSource != null) 'dataSource': dataSource!,
if (name != null) 'name': name!,
if (promotionId != null) 'promotionId': promotionId!,
if (promotionStatus != null) 'promotionStatus': promotionStatus!,
if (redemptionChannel != null) 'redemptionChannel': redemptionChannel!,
if (targetCountry != null) 'targetCountry': targetCountry!,
if (versionNumber != null) 'versionNumber': versionNumber!,
};