toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (accountId != null) 'accountId': accountId!,
if (accountName != null) 'accountName': accountName!,
if (appLinkData != null) 'appLinkData': appLinkData!,
if (barcode != null) 'barcode': barcode!,
if (classId != null) 'classId': classId!,
if (classReference != null) 'classReference': classReference!,
if (disableExpirationNotification != null)
'disableExpirationNotification': disableExpirationNotification!,
if (groupingInfo != null) 'groupingInfo': groupingInfo!,
if (hasLinkedDevice != null) 'hasLinkedDevice': hasLinkedDevice!,
if (hasUsers != null) 'hasUsers': hasUsers!,
if (heroImage != null) 'heroImage': heroImage!,
if (id != null) 'id': id!,
if (imageModulesData != null) 'imageModulesData': imageModulesData!,
if (infoModuleData != null) 'infoModuleData': infoModuleData!,
if (kind != null) 'kind': kind!,
if (linkedOfferIds != null) 'linkedOfferIds': linkedOfferIds!,
if (linksModuleData != null) 'linksModuleData': linksModuleData!,
if (locations != null) 'locations': locations!,
if (loyaltyPoints != null) 'loyaltyPoints': loyaltyPoints!,
if (messages != null) 'messages': messages!,
if (passConstraints != null) 'passConstraints': passConstraints!,
if (rotatingBarcode != null) 'rotatingBarcode': rotatingBarcode!,
if (secondaryLoyaltyPoints != null)
'secondaryLoyaltyPoints': secondaryLoyaltyPoints!,
if (smartTapRedemptionValue != null)
'smartTapRedemptionValue': smartTapRedemptionValue!,
if (state != null) 'state': state!,
if (textModulesData != null) 'textModulesData': textModulesData!,
if (validTimeInterval != null) 'validTimeInterval': validTimeInterval!,
if (version != null) 'version': version!,
};