toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (appLinkData != null) 'appLinkData': appLinkData!,
      if (barcode != null) 'barcode': barcode!,
      if (cardTitle != null) 'cardTitle': cardTitle!,
      if (classId != null) 'classId': classId!,
      if (genericType != null) 'genericType': genericType!,
      if (groupingInfo != null) 'groupingInfo': groupingInfo!,
      if (hasUsers != null) 'hasUsers': hasUsers!,
      if (header != null) 'header': header!,
      if (heroImage != null) 'heroImage': heroImage!,
      if (hexBackgroundColor != null)
        'hexBackgroundColor': hexBackgroundColor!,
      if (id != null) 'id': id!,
      if (imageModulesData != null) 'imageModulesData': imageModulesData!,
      if (linksModuleData != null) 'linksModuleData': linksModuleData!,
      if (logo != null) 'logo': logo!,
      if (notifications != null) 'notifications': notifications!,
      if (passConstraints != null) 'passConstraints': passConstraints!,
      if (rotatingBarcode != null) 'rotatingBarcode': rotatingBarcode!,
      if (smartTapRedemptionValue != null)
        'smartTapRedemptionValue': smartTapRedemptionValue!,
      if (state != null) 'state': state!,
      if (subheader != null) 'subheader': subheader!,
      if (textModulesData != null) 'textModulesData': textModulesData!,
      if (validTimeInterval != null) 'validTimeInterval': validTimeInterval!,
      if (wideLogo != null) 'wideLogo': wideLogo!,
    };