toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    "optOut": optOut,
    "userId": userId,
    "disablePreview": disablePreview,
    "customVariables": customVariables,
    "customDimension": {
      "customDimensionKey": customDimensionKey,
      "customDimensionValue": customDimensionValue
    }
  };
}