toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (activationStatus != null) 'activationStatus': activationStatus!,
      if (appLinkData != null) 'appLinkData': appLinkData!,
      if (barcode != null) 'barcode': barcode!,
      if (classId != null) 'classId': classId!,
      if (classReference != null) 'classReference': classReference!,
      if (concessionCategory != null)
        'concessionCategory': concessionCategory!,
      if (customConcessionCategory != null)
        'customConcessionCategory': customConcessionCategory!,
      if (customTicketStatus != null)
        'customTicketStatus': customTicketStatus!,
      if (deviceContext != null) 'deviceContext': deviceContext!,
      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 (hexBackgroundColor != null)
        'hexBackgroundColor': hexBackgroundColor!,
      if (id != null) 'id': id!,
      if (imageModulesData != null) 'imageModulesData': imageModulesData!,
      if (infoModuleData != null) 'infoModuleData': infoModuleData!,
      if (linksModuleData != null) 'linksModuleData': linksModuleData!,
      if (locations != null) 'locations': locations!,
      if (messages != null) 'messages': messages!,
      if (passConstraints != null) 'passConstraints': passConstraints!,
      if (passengerNames != null) 'passengerNames': passengerNames!,
      if (passengerType != null) 'passengerType': passengerType!,
      if (purchaseDetails != null) 'purchaseDetails': purchaseDetails!,
      if (rotatingBarcode != null) 'rotatingBarcode': rotatingBarcode!,
      if (smartTapRedemptionValue != null)
        'smartTapRedemptionValue': smartTapRedemptionValue!,
      if (state != null) 'state': state!,
      if (textModulesData != null) 'textModulesData': textModulesData!,
      if (ticketLeg != null) 'ticketLeg': ticketLeg!,
      if (ticketLegs != null) 'ticketLegs': ticketLegs!,
      if (ticketNumber != null) 'ticketNumber': ticketNumber!,
      if (ticketRestrictions != null)
        'ticketRestrictions': ticketRestrictions!,
      if (ticketStatus != null) 'ticketStatus': ticketStatus!,
      if (tripId != null) 'tripId': tripId!,
      if (tripType != null) 'tripType': tripType!,
      if (validTimeInterval != null) 'validTimeInterval': validTimeInterval!,
      if (version != null) 'version': version!,
    };