validate method

void validate()

Validate FeedbackEvent constraints.

Implementation

void validate() {
  if (id.isEmpty) {
    throw ArgumentError.value(
        id, 'id', 'FeedbackEvent id must not be empty');
  }
  if (actionId.isEmpty) {
    throw ArgumentError.value(
        actionId, 'actionId', 'FeedbackEvent actionId must not be empty');
  }
  if (ethosId.isEmpty) {
    throw ArgumentError.value(
        ethosId, 'ethosId', 'FeedbackEvent ethosId must not be empty');
  }
}