toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final action = this.action;
  final failureType = this.failureType;
  final minNumberOfExecutedThings = this.minNumberOfExecutedThings;
  final thresholdPercentage = this.thresholdPercentage;
  return {
    'action': action.toValue(),
    'failureType': failureType.toValue(),
    'minNumberOfExecutedThings': minNumberOfExecutedThings,
    'thresholdPercentage': thresholdPercentage,
  };
}