toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (activationOptions != null) 'activationOptions': activationOptions!,
      if (allowMultipleUsersPerObject != null)
        'allowMultipleUsersPerObject': allowMultipleUsersPerObject!,
      if (callbackOptions != null) 'callbackOptions': callbackOptions!,
      if (classTemplateInfo != null) 'classTemplateInfo': classTemplateInfo!,
      if (countryCode != null) 'countryCode': countryCode!,
      if (customCarriageLabel != null)
        'customCarriageLabel': customCarriageLabel!,
      if (customCoachLabel != null) 'customCoachLabel': customCoachLabel!,
      if (customConcessionCategoryLabel != null)
        'customConcessionCategoryLabel': customConcessionCategoryLabel!,
      if (customConfirmationCodeLabel != null)
        'customConfirmationCodeLabel': customConfirmationCodeLabel!,
      if (customDiscountMessageLabel != null)
        'customDiscountMessageLabel': customDiscountMessageLabel!,
      if (customFareClassLabel != null)
        'customFareClassLabel': customFareClassLabel!,
      if (customFareNameLabel != null)
        'customFareNameLabel': customFareNameLabel!,
      if (customOtherRestrictionsLabel != null)
        'customOtherRestrictionsLabel': customOtherRestrictionsLabel!,
      if (customPlatformLabel != null)
        'customPlatformLabel': customPlatformLabel!,
      if (customPurchaseFaceValueLabel != null)
        'customPurchaseFaceValueLabel': customPurchaseFaceValueLabel!,
      if (customPurchasePriceLabel != null)
        'customPurchasePriceLabel': customPurchasePriceLabel!,
      if (customPurchaseReceiptNumberLabel != null)
        'customPurchaseReceiptNumberLabel': customPurchaseReceiptNumberLabel!,
      if (customRouteRestrictionsDetailsLabel != null)
        'customRouteRestrictionsDetailsLabel':
            customRouteRestrictionsDetailsLabel!,
      if (customRouteRestrictionsLabel != null)
        'customRouteRestrictionsLabel': customRouteRestrictionsLabel!,
      if (customSeatLabel != null) 'customSeatLabel': customSeatLabel!,
      if (customTicketNumberLabel != null)
        'customTicketNumberLabel': customTicketNumberLabel!,
      if (customTimeRestrictionsLabel != null)
        'customTimeRestrictionsLabel': customTimeRestrictionsLabel!,
      if (customTransitTerminusNameLabel != null)
        'customTransitTerminusNameLabel': customTransitTerminusNameLabel!,
      if (customZoneLabel != null) 'customZoneLabel': customZoneLabel!,
      if (enableSingleLegItinerary != null)
        'enableSingleLegItinerary': enableSingleLegItinerary!,
      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 (languageOverride != null) 'languageOverride': languageOverride!,
      if (linksModuleData != null) 'linksModuleData': linksModuleData!,
      if (localizedIssuerName != null)
        'localizedIssuerName': localizedIssuerName!,
      if (locations != null) 'locations': locations!,
      if (logo != null) 'logo': logo!,
      if (messages != null) 'messages': messages!,
      if (multipleDevicesAndHoldersAllowedStatus != null)
        'multipleDevicesAndHoldersAllowedStatus':
            multipleDevicesAndHoldersAllowedStatus!,
      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 (transitOperatorName != null)
        'transitOperatorName': transitOperatorName!,
      if (transitType != null) 'transitType': transitType!,
      if (version != null) 'version': version!,
      if (viewUnlockRequirement != null)
        'viewUnlockRequirement': viewUnlockRequirement!,
      if (watermark != null) 'watermark': watermark!,
      if (wideLogo != null) 'wideLogo': wideLogo!,
      if (wordMark != null) 'wordMark': wordMark!,
    };