toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (allowBarcodeRedemption != null)
        'allowBarcodeRedemption': allowBarcodeRedemption!,
      if (allowMultipleUsersPerObject != null)
        'allowMultipleUsersPerObject': allowMultipleUsersPerObject!,
      if (callbackOptions != null) 'callbackOptions': callbackOptions!,
      if (cardNumberLabel != null) 'cardNumberLabel': cardNumberLabel!,
      if (classTemplateInfo != null) 'classTemplateInfo': classTemplateInfo!,
      if (countryCode != null) 'countryCode': countryCode!,
      if (enableSmartTap != null) 'enableSmartTap': enableSmartTap!,
      if (eventNumberLabel != null) 'eventNumberLabel': eventNumberLabel!,
      if (heroImage != null) 'heroImage': heroImage!,
      if (hexBackgroundColor != null)
        'hexBackgroundColor': hexBackgroundColor!,
      if (homepageUri != null) 'homepageUri': homepageUri!,
      if (id != null) 'id': id!,
      if (imageModulesData != null) 'imageModulesData': imageModulesData!,
      if (infoModuleData != null) 'infoModuleData': infoModuleData!,
      if (issuerName != null) 'issuerName': issuerName!,
      if (kind != null) 'kind': kind!,
      if (linksModuleData != null) 'linksModuleData': linksModuleData!,
      if (localizedCardNumberLabel != null)
        'localizedCardNumberLabel': localizedCardNumberLabel!,
      if (localizedEventNumberLabel != null)
        'localizedEventNumberLabel': localizedEventNumberLabel!,
      if (localizedIssuerName != null)
        'localizedIssuerName': localizedIssuerName!,
      if (localizedMerchantName != null)
        'localizedMerchantName': localizedMerchantName!,
      if (localizedPinLabel != null) 'localizedPinLabel': localizedPinLabel!,
      if (locations != null) 'locations': locations!,
      if (merchantName != null) 'merchantName': merchantName!,
      if (messages != null) 'messages': messages!,
      if (multipleDevicesAndHoldersAllowedStatus != null)
        'multipleDevicesAndHoldersAllowedStatus':
            multipleDevicesAndHoldersAllowedStatus!,
      if (pinLabel != null) 'pinLabel': pinLabel!,
      if (programLogo != null) 'programLogo': programLogo!,
      if (redemptionIssuers != null) 'redemptionIssuers': redemptionIssuers!,
      if (review != null) 'review': review!,
      if (reviewStatus != null) 'reviewStatus': reviewStatus!,
      if (securityAnimation != null) 'securityAnimation': securityAnimation!,
      if (textModulesData != null) 'textModulesData': textModulesData!,
      if (version != null) 'version': version!,
      if (viewUnlockRequirement != null)
        'viewUnlockRequirement': viewUnlockRequirement!,
      if (wideProgramLogo != null) 'wideProgramLogo': wideProgramLogo!,
      if (wordMark != null) 'wordMark': wordMark!,
    };