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 (linkedObjectIds != null) 'linkedObjectIds': linkedObjectIds!,
  if (linksModuleData != null) 'linksModuleData': linksModuleData!,
  if (logo != null) 'logo': logo!,
  if (merchantLocations != null) 'merchantLocations': merchantLocations!,
  if (messages != null) 'messages': messages!,
  if (notifications != null) 'notifications': notifications!,
  if (passConstraints != null) 'passConstraints': passConstraints!,
  if (rotatingBarcode != null) 'rotatingBarcode': rotatingBarcode!,
  if (saveRestrictions != null) 'saveRestrictions': saveRestrictions!,
  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 (valueAddedModuleData != null)
    'valueAddedModuleData': valueAddedModuleData!,
  if (wideLogo != null) 'wideLogo': wideLogo!,
};