toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "expiryDate": expiryDate,
      "id": id,
      "identifier": identifier,
      "title": title,
      "subTitle": subTitle,
      "description": description,
      "iconLink": iconLink,
      "targetType": targetType,
      "target": target,
      "webhookURL": webhookUrl,
      "webhookPostBodyCredentials": webhookPostBodyCredentials,
      "expiry": expiry,
      "expiryDays": expiryDays,
      "accumulate": accumulate,
      "isActive": isActive,
      "levelOrderNumber": levelOrderNumber,
      "canOptOut": canOptOut,
      "metadata": metadata?.toJson(),
      "levelProgressFactor": levelProgressFactor,
      "transactionRewardDetail": transactionRewardDetail?.toJson(),
      "importHash": importHash,
      "createdAt": createdAt?.toIso8601String(),
      "updatedAt": updatedAt?.toIso8601String(),
      "deletedAt": deletedAt,
      "tenantId": tenantId,
      "createdById": createdById,
      "updatedById": updatedById,
      // "icon": icon.map((x) => x).toList(),
    };