toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (accountIdLabel != null) 'accountIdLabel': accountIdLabel!,
      if (accountNameLabel != null) 'accountNameLabel': accountNameLabel!,
      if (allowMultipleUsersPerObject != null)
        'allowMultipleUsersPerObject': allowMultipleUsersPerObject!,
      if (callbackOptions != null) 'callbackOptions': callbackOptions!,
      if (classTemplateInfo != null) 'classTemplateInfo': classTemplateInfo!,
      if (countryCode != null) 'countryCode': countryCode!,
      if (discoverableProgram != null)
        'discoverableProgram': discoverableProgram!,
      if (enableSmartTap != null) 'enableSmartTap': enableSmartTap!,
      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 (localizedAccountIdLabel != null)
        'localizedAccountIdLabel': localizedAccountIdLabel!,
      if (localizedAccountNameLabel != null)
        'localizedAccountNameLabel': localizedAccountNameLabel!,
      if (localizedIssuerName != null)
        'localizedIssuerName': localizedIssuerName!,
      if (localizedProgramName != null)
        'localizedProgramName': localizedProgramName!,
      if (localizedRewardsTier != null)
        'localizedRewardsTier': localizedRewardsTier!,
      if (localizedRewardsTierLabel != null)
        'localizedRewardsTierLabel': localizedRewardsTierLabel!,
      if (localizedSecondaryRewardsTier != null)
        'localizedSecondaryRewardsTier': localizedSecondaryRewardsTier!,
      if (localizedSecondaryRewardsTierLabel != null)
        'localizedSecondaryRewardsTierLabel':
            localizedSecondaryRewardsTierLabel!,
      if (locations != null) 'locations': locations!,
      if (messages != null) 'messages': messages!,
      if (multipleDevicesAndHoldersAllowedStatus != null)
        'multipleDevicesAndHoldersAllowedStatus':
            multipleDevicesAndHoldersAllowedStatus!,
      if (programLogo != null) 'programLogo': programLogo!,
      if (programName != null) 'programName': programName!,
      if (redemptionIssuers != null) 'redemptionIssuers': redemptionIssuers!,
      if (review != null) 'review': review!,
      if (reviewStatus != null) 'reviewStatus': reviewStatus!,
      if (rewardsTier != null) 'rewardsTier': rewardsTier!,
      if (rewardsTierLabel != null) 'rewardsTierLabel': rewardsTierLabel!,
      if (secondaryRewardsTier != null)
        'secondaryRewardsTier': secondaryRewardsTier!,
      if (secondaryRewardsTierLabel != null)
        'secondaryRewardsTierLabel': secondaryRewardsTierLabel!,
      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!,
    };