toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (allowMultipleUsersPerObject != null)
        'allowMultipleUsersPerObject': allowMultipleUsersPerObject!,
      if (boardingAndSeatingPolicy != null)
        'boardingAndSeatingPolicy': boardingAndSeatingPolicy!,
      if (callbackOptions != null) 'callbackOptions': callbackOptions!,
      if (classTemplateInfo != null) 'classTemplateInfo': classTemplateInfo!,
      if (countryCode != null) 'countryCode': countryCode!,
      if (destination != null) 'destination': destination!,
      if (enableSmartTap != null) 'enableSmartTap': enableSmartTap!,
      if (flightHeader != null) 'flightHeader': flightHeader!,
      if (flightStatus != null) 'flightStatus': flightStatus!,
      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 (languageOverride != null) 'languageOverride': languageOverride!,
      if (linksModuleData != null) 'linksModuleData': linksModuleData!,
      if (localBoardingDateTime != null)
        'localBoardingDateTime': localBoardingDateTime!,
      if (localEstimatedOrActualArrivalDateTime != null)
        'localEstimatedOrActualArrivalDateTime':
            localEstimatedOrActualArrivalDateTime!,
      if (localEstimatedOrActualDepartureDateTime != null)
        'localEstimatedOrActualDepartureDateTime':
            localEstimatedOrActualDepartureDateTime!,
      if (localGateClosingDateTime != null)
        'localGateClosingDateTime': localGateClosingDateTime!,
      if (localScheduledArrivalDateTime != null)
        'localScheduledArrivalDateTime': localScheduledArrivalDateTime!,
      if (localScheduledDepartureDateTime != null)
        'localScheduledDepartureDateTime': localScheduledDepartureDateTime!,
      if (localizedIssuerName != null)
        'localizedIssuerName': localizedIssuerName!,
      if (locations != null) 'locations': locations!,
      if (messages != null) 'messages': messages!,
      if (multipleDevicesAndHoldersAllowedStatus != null)
        'multipleDevicesAndHoldersAllowedStatus':
            multipleDevicesAndHoldersAllowedStatus!,
      if (origin != null) 'origin': origin!,
      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 (wordMark != null) 'wordMark': wordMark!,
    };