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